/* ===== 怡居PMS 样式 ===== */
:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #1f2a37;
  --muted: #6b7785;
  --line: #e6eaf0;
  --brand: #126e6e;
  --brand-2: #1aa3a3;
  --primary: #1577c4;
  --danger: #e23b3b;
  --shadow: 0 2px 10px rgba(20, 40, 60, .06);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px;
}
h1, h2, h3, h4 { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font-size: 13px; transition: .15s;
}
.btn:hover { border-color: #cdd5df; background: #f7f9fc; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #0f63a8; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: #0e5b5b; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c22e2e; }
.btn-ghost { background: transparent; }
#logout-btn { background: #1AA3A3 !important; color: #fff !important; border-color: #1AA3A3 !important; }
#logout-btn:hover { background: #158d8d !important; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 登录 ---------- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(135deg, #0e5b5b 0%, #1577c4 100%); }
.login-card { background: #fff; width: 380px; max-width: 92vw; border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.login-brand h1 { font-size: 22px; }
.login-brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.login-form label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.login-err { color: var(--danger); font-size: 12px; min-height: 16px; margin-top: 8px; }
.login-err.expired { color: #b3541e; background: #fff8f0; border-left: 3px solid #e8a33d; border-radius: 6px; padding: 7px 10px; line-height: 1.6; margin-bottom: 4px; }
.login-remember { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 10px 0 2px; cursor: pointer; user-select: none; }
.login-remember input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.login-hint { margin-top: 18px; font-size: 11px; color: var(--muted); line-height: 1.6; background: #f6f8fa; padding: 10px; border-radius: 8px; }
.login-hint b { color: var(--brand); }
.login-extra { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.login-link { font-size: 12px; color: var(--primary); text-decoration: none; }
.login-link:hover { text-decoration: underline; }

/* ---------- 布局：顶部横置主菜单 ---------- */
.app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.appbar { flex: 0 0 54px; height: 54px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #0f2a33; color: #cfe3e3; position: relative; z-index: 60;
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 4px 14px rgba(8,26,32,.22); }
.ab-brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; height: 32px;
  padding: 0 12px 0 2px; margin-right: 2px; border-right: 1px solid rgba(255,255,255,.1); }
.ab-logo { width: 29px; height: 29px; border-radius: 9px; background: var(--brand-2); color: #062b2b;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
  box-shadow: 0 3px 10px rgba(26,163,163,.35); flex: 0 0 auto; }
.ab-name { line-height: 1.15; min-width: 0; }
.ab-name strong { display: block; color: #fff; font-size: 12.5px; white-space: nowrap;
  max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.ab-name span { display: block; font-size: 9px; color: #8fb3b3; white-space: nowrap; letter-spacing: .2px; }

/* 菜单：一排横置的胶囊气泡 */
.ab-nav { flex: 1 1 auto; display: flex; align-items: center; gap: 3px; min-width: 0;
  overflow-x: auto; overflow-y: hidden; padding: 2px 4px; scrollbar-width: none; }
.ab-nav::-webkit-scrollbar { height: 0; }
.nav-item { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 7px 11px;
  border-radius: 999px; color: #b9d2d2; cursor: pointer; font-size: 12.5px; user-select: none;
  white-space: nowrap; background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.16);
  transition: background .16s, color .16s, transform .16s, box-shadow .16s; }
.nav-item:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-1px); }
.nav-item.active { background: linear-gradient(135deg, #22b3b3, #0f7d7d); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(26,163,163,.42), inset 0 1px 0 rgba(255,255,255,.22); transform: none; }
.nav-ico { font-size: 12.5px; line-height: 1; flex: 0 0 auto; filter: saturate(.95); }
.nav-item.active .nav-ico { filter: brightness(1.12) saturate(1.05); }

/* ---------- 页面左侧子菜单（顶部主菜单分组内的二级导航） ---------- */
/* 分组（订单/账务/房价/配置）点进去后，左侧显示该组的竖排子菜单，当前页高亮 */
.main-body { flex: 1 1 auto; display: flex; min-height: 0; min-width: 0; }
.sub-side { flex: 0 0 178px; width: 178px; background: #fff; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 12px 10px 16px; }
.sub-side[hidden] { display: none; }
.sub-side-t { font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: 1.5px;
  padding: 2px 8px 10px; }
.sub-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: #334155; cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .14s, color .14s; }
.sub-item:hover { background: #f1f5f9; color: #0f7d7d; }
.sub-item.on { background: linear-gradient(135deg, #22b3b3, #0f7d7d); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,163,163,.28); }
.sub-item.on:hover { color: #fff; }
.sub-ico { width: 18px; text-align: center; font-size: 13.5px; flex: 0 0 18px; filter: saturate(.95); }
/* 窄屏：子菜单收到内容区顶部，变成可横滑的一排 */
@media (max-width: 900px) {
  .main-body { flex-direction: column; }
  .sub-side { flex: 0 0 auto; width: auto; border-right: none; border-bottom: 1px solid var(--line);
    display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; }
  .sub-side-t { display: none; }
  .sub-item { flex: 0 0 auto; }
}

.ab-right { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 32px;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.1); }
.user-box { display: flex; align-items: center; gap: 7px; padding: 0; min-width: 0; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-2); color: #062b2b;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: 0 0 auto; }
.user-box .un { color: #fff; font-size: 12px; line-height: 1.2; white-space: nowrap;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.user-box .ur { color: #8fb3b3; font-size: 9.5px; line-height: 1.2; white-space: nowrap;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
#logout-btn { flex: 0 0 auto; width: auto; padding: 5px 12px; border-radius: 999px; font-size: 12px; }

@media (max-width: 1660px) {
  .nav-ico { display: none; }
  .nav-item { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 1320px) {
  .ab-name { display: none; }
  .ab-brand { padding: 0 8px 0 2px; }
  .user-box > div:not(.user-avatar) { display: none; }
}
/* 1024 窄屏：13 项菜单再收一档内边距，避免出现横向滚动条 */
@media (max-width: 1100px) {
  .ab-nav { gap: 2px; padding: 2px 2px; }
  .nav-item { padding: 6px 8px; font-size: 11.5px; }
}

.main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: 50px; flex: 0 0 50px; background: #fff; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 22px; }
.crumb { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.page-content { padding: 18px 22px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }

/* ---------- 卡片 / 面板 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 15px; }
.panel-body { padding: 16px; }
.section-title { font-size: 15px; font-weight: 600; margin: 4px 0 14px; }

/* 预订房型行 */
.resv-room-row { padding: 6px 10px; background: #f8f9fb; border-radius: 8px; border: 1px solid #e2e4ea; }
.resv-room-row:hover { border-color: #c4cad6; }
.resv-room-row select { flex: 1 !important; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-card .k { color: var(--muted); font-size: 12px; }
.stat-card .v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 表 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
/* 工具栏内的输入框不继承 .inp 的 width:100%，避免把整行撑开 */
.toolbar > .inp { width: auto; min-width: 120px; flex: 0 0 auto; }
.toolbar > select.inp { min-width: 130px; }
.toolbar .spacer { flex: 1; }
.tbl-wrap { overflow-x: auto; }
/* 基准价表格：单价直接就地编辑 */
.bp-inp { width: 96px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; text-align: right;
  transition: border-color .14s, box-shadow .14s; }
.bp-inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,163,163,.14); }
.bp-inp.dirty { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245,158,11,.14); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.tbl th, table.tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
table.tbl th { background: #f7f9fc; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.tbl tr:hover td { background: #fbfdff; }
.empty { text-align: center; color: var(--muted); padding: 36px; }

/* ---------- 表单控件 ---------- */
.inp { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
  background: #fff; color: var(--ink); }
.inp:focus { outline: none; border-color: var(--primary); }

/* 可输入检索的下拉框（ss = search select）：挂账账户这类长列表 */
.ss-wrap { position: relative; }
.ss-wrap .ss-input { padding-right: 30px; }
.ss-caret { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: none;
  background: none; color: #7b8a99; font-size: 11px; line-height: 1; padding: 4px 7px; cursor: pointer; }
.ss-caret:hover { color: var(--primary); }
.ss-pop { margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 22px rgba(15,40,70,.09); max-height: 208px; overflow-y: auto; }
.ss-item { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; font-size: 13px; color: #2b3b4d; cursor: pointer; }
.ss-item:hover, .ss-item.act { background: #f2f8fd; }
.ss-item.on { background: #e8f3fc; color: #1f6fb2; font-weight: 600; }
.ss-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-meta { flex: 0 0 auto; font-size: 11.5px; color: #8a97a5; font-variant-numeric: tabular-nums; }
.ss-empty { padding: 12px; text-align: center; color: #8a97a5; font-size: 12.5px; }
.inp:disabled, #hotel-code[disabled] {
  background: #f0f2f5;
  color: #8892a4;
  cursor: not-allowed;
  border-color: #dde1e8;
}
#hotel-code {
  user-select: none;
  -webkit-user-select: none;
}
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.modal-wide { width: 720px; }

/* ---------- 房态图（左侧筛选栏 + 右侧楼层方块图） ---------- */
.rm-wrap { display: flex; gap: 14px; align-items: flex-start; }

/* 左栏筛选 */
.rm-side { width: 250px; flex: 0 0 250px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; position: sticky; top: 0; max-height: calc(100vh - 116px); overflow-y: auto; box-shadow: var(--shadow); }
.rm-date { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rm-dateinp { flex: 1; padding: 6px 8px; font-size: 12.5px; }
.rm-today { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12.5px; color: var(--primary); }
.rm-today:hover { background: #f2f8ff; border-color: #bcd8f0; }
.rm-q { padding: 7px 10px; font-size: 12.5px; }
.rm-sec { border-top: 1px solid var(--line); padding: 10px 0 6px; }
.rm-sec-t { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; }
.rm-sec-t em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.rm-check2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 4px; }
.rm-check { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink); cursor: pointer;
  user-select: none; min-width: 0; }
.rm-check input, .rm-type input { width: 13px; height: 13px; accent-color: var(--primary); flex: 0 0 auto; cursor: pointer; }
/* 房态码胶囊（VC/OC/OD/RS/OO/VD）：定宽 + 居中，否则 V 比 O 窄、字宽不一，六个胶囊宽度会各不相同 */
.rm-pill { display: inline-block; box-sizing: border-box; flex: 0 0 auto;
  min-width: 24px; padding: 0 3px; text-align: center;
  font-size: 10.5px; line-height: 16px; border-radius: 3px; color: #fff; font-weight: 600; letter-spacing: .2px; }
.rm-badge { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 3px; background: #eef1f5; color: #4b5563;
  font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; }
.rm-ck-txt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-check em, .rm-type em { font-style: normal; margin-left: auto; font-size: 11.5px; color: var(--muted); padding-left: 2px; }
.rm-types { display: flex; flex-direction: column; gap: 6px; }
.rm-type { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; user-select: none; min-width: 0; }
.rm-type-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 右栏 */
.rm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rm-mainhead { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rm-building { font-size: 14px; font-weight: 600; }
.rm-total { font-style: normal; font-size: 12px; color: var(--muted); }
.rm-mainhead .spacer { flex: 1; }
.rm-pricetoggle { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.rm-pricetoggle input { width: 13px; height: 13px; accent-color: var(--primary); cursor: pointer; }
.rm-iconbtn { border: 1px solid var(--line); background: #fff; width: 28px; height: 28px; border-radius: 7px;
  color: var(--muted); font-size: 15px; line-height: 1; }
.rm-iconbtn:hover { color: var(--primary); border-color: #bcd8f0; }

.rm-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rm-stripitem { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.rm-stripitem i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.rm-stripitem b { color: var(--ink); font-size: 12.5px; }
.rm-stripitem.ghost { background: transparent; border-style: dashed; }

.rm-board { flex: 1; min-height: 140px; padding-bottom: 54px; }
.rm-floor { margin-bottom: 14px; }
.rm-floor-t { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.rm-floor-t .cn { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rm-floor-t em { font-style: normal; font-size: 11.5px; color: var(--muted); }
/* 房卡按固定尺寸网格排：列数由 JS 按容器宽度取整（全部卡片等宽、等高等大），
   行内 1fr 均分铺满整行，右侧不留白。 */
.rm-grid { display: grid; grid-auto-rows: 72px; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

/* 房卡（房号 + 房态码 + 标记小图标 + 客人/价格）—— 尺寸固定，所有卡一致 */
.room-card { border-radius: 4px; padding: 7px 8px; color: #fff; cursor: pointer; position: relative;
  display: flex; flex-direction: column; height: 72px; box-sizing: border-box; overflow: hidden;
  transition: transform .12s, box-shadow .12s; }
.room-card .rc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.room-card .rc-no { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.95); line-height: 1.1; flex: 0 0 auto;
  letter-spacing: .2px; }
.room-card .rc-code { font-size: 10px; font-weight: 600; letter-spacing: 0; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.14);
  white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.1; }
/* 窄视口卡片更小，房型中文再降半档，宁可略小也不截断 */
@media (max-width: 1300px) {
  .room-card .rc-code { font-size: 9.5px; }
  .room-card .rc-top { gap: 3px; }
}
/* 第三层标记（2026-10-28 加大：13→16px），贴卡片底部 */
.room-card .rc-badges { display: flex; gap: 3px; margin-top: auto; height: 16px; }
.room-card .rc-badge { width: 16px; height: 16px; border-radius: 3px; background: #fff; color: #374151;
  font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; font-style: normal;
  box-shadow: 0 1px 1px rgba(0,0,0,.14); flex: 0 0 auto; }
.room-card .rc-bot { margin-top: 2px; display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; }
.room-card .rc-guest { font-size: 11px; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.room-card .rc-price { font-size: 10.5px; color: rgba(255,255,255,.82); white-space: nowrap; flex: 0 0 auto; }
.room-card .rc-tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; background: rgba(18,110,110,.3); }

.room-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.room-card.sel { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--brand); }

/* 拖拽换房：源房间 / 放置目标高亮 */
.room-card.drag-source { cursor: grab; }
.room-card.dragging { opacity: .45; transform: scale(.96); box-shadow: 0 0 0 2px #1a72c4; }
.room-card.drop-target { box-shadow: 0 0 0 3px rgba(16,185,129,.85); transform: translateY(-2px); }

/* 底部悬浮状态条（固定在右下角，与同行房态图一致） */
.rm-footbar { position: fixed; right: 22px; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap;
  justify-content: flex-end; align-items: center; gap: 8px; pointer-events: none; }
.rm-footbar > * { pointer-events: auto; }
.rm-pillbar { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px;
  font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow); }
.rm-pillbar b { color: var(--brand); font-size: 13.5px; }
.rm-pillbtn { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 7px 16px;
  font-size: 12.5px; color: var(--ink); box-shadow: var(--shadow); }
.rm-pillbtn:hover { border-color: var(--brand); color: var(--brand); }
.rm-pillbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 底栏「每 10 秒自动刷新」提示：只是让人知道这页会自己在动，不占按钮位 */
.rm-autorefresh { font-size: 11.5px; color: #94a3b8; padding: 0 4px; white-space: nowrap; user-select: none; }

/* 气泡内的 5 种标记 */
.pop-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; font-size: 11.5px; }
.pop-flag { display: flex; align-items: center; gap: 3px; background: #f1f4f8; border-radius: 4px; padding: 1px 6px; color: #4b5563; }
.pop-flag i { font-style: normal; font-weight: 600; }

@media (max-width: 720px) {
  .rm-wrap { flex-direction: column; }
  .rm-side { width: 100%; flex: none; position: static; max-height: none; }
  /* 堆叠模式下筛选组内元素也不拉伸变形 */
  .rm-check2 { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .rm-side .inp { max-width: 100%; }
}

/* 联房选房：仿房态图按楼层分组，白色小卡片（无底色、不显示订单号） */
.link-floor-block { margin-bottom: 18px; }
.link-floor-title { font-size: 14px; font-weight: 600; margin: 6px 0 10px; padding-left: 10px; border-left: 3px solid var(--brand); color: var(--ink); }
.link-room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.link-room-card { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; text-align: left; transition: .15s; }
.link-room-card .ln { font-size: 15px; font-weight: 700; color: var(--ink); }
.link-room-card .lg { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-room-card.linkable:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.link-room-card.picked { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.5); }
.link-room-card.disabled { opacity: .4; cursor: not-allowed; }

/* 排房面板：房态筛选 + 紧凑标签卡片 + 已选表格 */
.assign-room-panel { padding: 4px; }
.assign-info-row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 12px; font-size: 13px; color: var(--ink); }
.assign-info-row b { font-weight: 600; margin-left: 4px; }
.assign-upgrade { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); margin-bottom: 12px; cursor: pointer; }
.assign-filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; align-items: center; }
.assign-filter-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); cursor: pointer; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; transition: .12s; }
.assign-filter-tag input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.assign-filter-tag input:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #1f2937;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 房态筛选标签颜色：空净蓝 / 空脏灰 / 空检深绿 / 临时橙 / 预离红 / 占用橙 */
.assign-filter-tag.tag-vc  { color: #1a72c4; border-color: #7ec3ff; background: #f0f8ff; }
.assign-filter-tag.tag-vd  { color: #6b7280; border-color: #d1d5db; background: #f9fafb; }
.assign-filter-tag.tag-vi  { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.assign-filter-tag.tag-temp{ color: #c2410c; border-color: #fdba74; background: #fff7ed; }
.assign-filter-tag.tag-due { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

.assign-filter-tag.tag-vc:hover  { background: #e0f2fe; }
.assign-filter-tag.tag-vd:hover  { background: #f3f4f6; }
.assign-filter-tag.tag-vi:hover  { background: #dcfce7; }
.assign-filter-tag.tag-temp:hover{ background: #ffedd5; }
.assign-filter-tag.tag-due:hover { background: #fee2e2; }
.assign-search-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.assign-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.assign-grid-wrap { max-height: 360px; overflow-y: auto; margin-bottom: 12px; }
.assign-room-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.assign-room-card {
  min-width: 64px; height: 32px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: .12s; user-select: none; background: #fff; box-sizing: border-box; white-space: nowrap;
}
.assign-room-card .assign-num { font-weight: 700; }
.assign-room-card .assign-state { font-size: 11px; opacity: .9; }
.assign-room-card .assign-temp-mark,
.assign-room-card .assign-due-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 11px; font-weight: 600; color: #fff; border-radius: 4px; margin-left: 4px;
}
.assign-room-card .assign-temp-mark { background: #f59e0b; }
.assign-room-card .assign-resv-mark { background: #fff; color: #c2410c; }
.assign-room-card .assign-due-mark { background: #ef4444; }
.assign-room-card.selectable:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.assign-room-card.disabled { opacity: .55; cursor: not-allowed; }
/* 空净 - 蓝色 */
.assign-room-card.card-vc { border-color: #7ec3ff; color: #1a72c4; background: #f0f8ff; }
.assign-room-card.card-vc.picked { background: #1a72c4; color: #fff; box-shadow: 0 0 0 2px rgba(26,114,196,.45); }
/* 空脏 - 灰色（可选房） */
.assign-room-card.card-vd { border-color: #d1d5db; color: #6b7280; background: #f9fafb; }
.assign-room-card.card-vd.picked { background: #6b7280; color: #fff; box-shadow: 0 0 0 2px rgba(107,114,128,.45); }
/* 空检 - 黄色 */
.assign-room-card.card-vi { border-color: #f5d58a; color: #b48a1a; background: #fffbeb; }
.assign-room-card.card-vi.picked { background: #d97706; color: #fff; box-shadow: 0 0 0 2px rgba(217,119,6,.45); }
/* 临时 - 白底橙边框 + 橙色小框“临” */
.assign-room-card.card-temp {
  border-color: #f59e0b; color: var(--ink); background: #fff;
}
.assign-room-card.card-temp .assign-temp-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 11px; font-weight: 600; color: #6b7280; background: #f59e0b; border-radius: 4px;
}
.assign-room-card.card-temp.picked { background: #fff7ed; box-shadow: 0 0 0 2px rgba(245,158,11,.45); }
/* 已预订 - 橙色（客人已订，房间待入住） */
.assign-room-card.card-resv { border-color: #f59e0b; color: #fff; background: #f59e0b; }
.assign-room-card.card-resv.picked { background: #ea580c; box-shadow: 0 0 0 2px rgba(234,88,12,.45); }
/* 已入住 - 蓝灰（干净 OC / 脏 OD，非橙色） */
.assign-room-card.card-occ { border-color: #94a3b8; color: #334155; background: #eef2f7; }
.assign-room-card.card-occ.picked { background: #475569; color: #fff; box-shadow: 0 0 0 2px rgba(71,85,105,.45); }
/* 预离 - 橙色 */
.assign-room-card.card-due { border-color: #f59e0b; color: #fff; background: #f59e0b; }
.assign-room-card.card-due.picked { background: #ea580c; box-shadow: 0 0 0 2px rgba(234,88,12,.45); }
/* 维修 */
.assign-room-card.card-maint { border-color: #e5e7eb; color: #9ca3af; background: #f3f4f6; text-decoration: line-through; }
.assign-picked-wrap { margin-top: 8px; }
.assign-picked-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.assign-picked-tbl { font-size: 12px; }
.assign-picked-tbl th,
.assign-picked-tbl td { padding: 6px 8px; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.green { background: #e4f8ee; color: #1a9e5c; }
.badge.red { background: #fdeaea; color: #d83a3a; }
.badge.blue { background: #e7f1fd; color: #1a72c4; }
.badge.gray { background: #eef1f4; color: #6b7785; }
.badge.orange { background: #fdf0e0; color: #c9861a; }
.badge.plain { background: #eef1f4; color: #445; }
.badge.purple { background: #f1e9fd; color: #8b3fd1; }
.badge.teal { background: #e3f7f5; color: #117e74; }
.badge.indigo { background: #e8ecfd; color: #3f51c4; }
.badge.amber { background: #fdf3e0; color: #b87514; }
.badge.pink { background: #fde9f1; color: #c43f86; }
.badge.cyan { background: #e2f5fc; color: #147fa0; }
/* 多角色多选 */
.role-picker { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 10px; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; background: #fafbfc; }
.role-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.role-opt input { width: 15px; height: 15px; accent-color: #3b82f6; cursor: pointer; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-size: 13.5px; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- Modal / Toast ---------- */
#modal-overlay { position: fixed; inset: 0; background: rgba(15,30,40,.45); display: none; align-items: center;
  justify-content: center; z-index: 1000; }
#modal-overlay.show { display: flex; }
.modal-box { background: #fff; width: 460px; max-width: 94vw; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-height: 90vh; display: flex; flex-direction: column; animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; }
.modal-close { border: none; background: none; font-size: 22px; color: var(--muted); line-height: 1; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* 订单详情内的迷你标签（免费升房 / 本人入住 / 联房团队） */
.mini-tag { font-size: 11px; font-weight: 400; line-height: 1; color: #8a6d1f; background: #fdf6e3;
  border: 1px solid #f0e0b0; border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.mini-tag-blue { color: #0e5a8a; background: #e8f4fb; border-color: #b9d9ec; }

/* 订单详情「包价」按钮（房间信息标题行右侧） */
.btn-pkg { background: #1577c4; color: #fff; border-color: #1577c4; }
.btn-pkg:hover { background: #1068b0; }

/* 订单详情底部固定操作栏：内容滚动时功能键常驻可见 */
.detail-action-bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 18px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(15, 30, 40, .06); }
.confirm-msg { margin: 0 0 4px; color: var(--ink); line-height: 1.6; }
/* 退房「是否加收房费」弹窗（当天入住当天退房的日用房） */
/* 独立浮层：层级高于 #modal-overlay(1000)，盖在订单详情弹窗之上，且不影响下层弹窗 */
.extra-fee-overlay {
  position: fixed; inset: 0; z-index: 1100; display: none;
  align-items: center; justify-content: center;
  background: rgba(15,30,40,.45);
}
.extra-fee-overlay.show { display: flex; }
.extra-fee-tip {
  background: #fff7e8; border: 1px solid #f0dfb8; border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; color: #8a5a12; line-height: 1.75;
}
.extra-fee-why { margin-top: 4px; font-size: 12px; color: #a9761c; }
.extra-fee-quick { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.extra-fee-pay { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
/* 结账前「是否使用预授权」浮层：逐笔列出还有额度的预授权 */
.pa-ask-list {
  margin-top: 10px; border: 1px solid #e2e9f2; border-radius: 8px;
  background: #f5f8fc; overflow: hidden;
}
.pa-ask-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; font-size: 12.5px; border-bottom: 1px solid #e8eef6;
}
.pa-ask-row:last-child { border-bottom: none; }
.pa-ask-way { color: #3d4b5c; }
.pa-ask-amt { color: #1577c4; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-ask-note { margin-top: 8px; font-size: 11.5px; color: #7d8b9a; line-height: 1.7; }
.extra-fee-preview {
  margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  background: #f5f8fc; border: 1px solid #e2e9f2;
  font-size: 12px; color: #475569; line-height: 1.7;
}

#toast-area { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1f2a37; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(-8px); transition: .25s; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #15795a; }
.toast-error { background: #c0392b; }

/* 弹窗内错误提示（替代页面顶部 toast） */
.modal-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c2bd; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; line-height: 1.5; }

/* ---------- 超预离气泡（右下角，每 30 分钟一次） ---------- */
/* 位置抬高到贴底操作条之上，否则会盖住账务中心/订单页的「更多」等按钮 */
#overdue-area { position: fixed; right: 18px; bottom: 92px; z-index: 900; display: none; flex-direction: column; align-items: flex-end; gap: 10px; width: 300px; max-height: calc(100vh - 210px); overflow-y: auto; pointer-events: none; }
#overdue-area.show { display: flex; }
.overdue-card { width: 300px; flex: 0 0 auto; pointer-events: auto; background: #fff; border: 1px solid #f3c7c1; border-left: 4px solid #c0392b; border-radius: 10px; box-shadow: 0 10px 26px rgba(15, 30, 40, .18); padding: 10px 12px 12px; animation: overdueIn .28s ease-out; }
@keyframes overdueIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.overdue-head { display: flex; align-items: center; gap: 6px; }
.overdue-ico { font-size: 14px; }
.overdue-title { flex: 1; font-size: 13px; font-weight: 700; color: #c0392b; }
.overdue-x { border: 0; background: transparent; color: #9aa7b4; font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
.overdue-x:hover { color: #c0392b; }
.overdue-msg { font-size: 12.5px; color: var(--ink); margin-top: 6px; line-height: 1.5; }
.overdue-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.overdue-acts { display: flex; justify-content: flex-end; margin-top: 8px; }
.overdue-more { width: 300px; flex: 0 0 auto; pointer-events: auto; font-size: 11.5px; color: #c0392b; background: #fff5f4; border: 1px dashed #f3c7c1; border-radius: 8px; padding: 6px 10px; line-height: 1.5; }

/* ---------- 报表 ---------- */
.chart-bar { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.chart-bar .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.chart-bar .bar { width: 70%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-bar .lbl { font-size: 10px; color: var(--muted); }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-legend { font-size: 13px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.donut-legend .dot { width: 11px; height: 11px; border-radius: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.tag { font-size: 11px; color: var(--muted); background: #f0f3f7; padding: 2px 8px; border-radius: 6px; }

/* ---------- 操作日志 ---------- */
.log-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.log-item { border-left: 3px solid var(--brand); background: #f7f9fc; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.log-time { font-size: 12px; color: var(--muted); font-family: monospace; }
.log-meta { display: flex; gap: 12px; align-items: center; margin: 2px 0; flex-wrap: wrap; }
.log-op { font-size: 13px; font-weight: 600; }
.log-act { font-size: 12px; color: var(--brand); background: #eaf2ff; padding: 1px 8px; border-radius: 6px; }
.log-content { font-size: 13px; color: #2a3340; }

/* ---------- 订单详情弹窗（宽屏版） ---------- */
.modal-wide { width: 1120px; max-width: 96vw; }
.detail-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-row > div { min-width: 100px; }
.dl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.detail-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.detail-tbl th, .detail-tbl td { padding: 10px 14px; font-size: 13px; }
.detail-tbl th { background: #f7f9fc; white-space: nowrap; color: var(--muted); }
.detail-tbl tr:hover td { background: none; }
tr.voided { opacity: 0.45; }
tr.voided td { text-decoration: line-through; }

/* 订单详情：团队备注块 / 备注双栏 */
.note-block {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap;
  max-height: 120px; overflow-y: auto; color: var(--ink);
}
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .note-grid { grid-template-columns: 1fr; } }
.note-card { display: flex; flex-direction: column; gap: 6px; }
.note-card-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.note-card textarea { resize: vertical; line-height: 1.6; }

/* ---------- 联房订单详情侧边栏 ---------- */
.linked-sidebar { width: 240px; background: #f7f9fc; border-right: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; }
.linked-sidebar-header { padding: 14px; border-bottom: 1px solid var(--line); }
.ls-tabs { display: flex; gap: 4px; margin: -4px -4px 10px; border-bottom: 1px solid var(--line); }
.ls-tab { font-size: 12.5px; color: #5b6b7c; padding: 6px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.ls-tab:hover { color: var(--brand); }
.ls-tab.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.linked-sidebar-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.linked-sidebar-summary { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.linked-sidebar-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.linked-sidebar-stat { flex: 1; min-width: 60px; }
.linked-sidebar-stat-label { font-size: 10px; color: var(--muted); }
.linked-sidebar-stat-value { font-size: 12px; font-weight: 600; color: var(--text); }
.linked-sidebar-group { font-size: 11px; color: var(--muted); word-break: break-all; }
.linked-room-list { padding: 10px; overflow-y: auto; flex: 1; }
.linked-room-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; height: 72px; min-height: 72px; box-sizing: border-box; position: relative; }
.linked-room-card.expanded { height: auto; min-height: 72px; }
.linked-room-card.active { border-color: var(--brand); box-shadow: inset 0 0 0 2px rgba(21,119,196,.12); }
.linked-room-card:hover:not(.active) { border-color: #cbd5e1; }
/* 已取消分段标题：取消单统一沉到列表底部，单独起一段，避免和正常单混在一起 */
.linked-room-sep {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 8px; font-size: 11px; color: var(--muted); white-space: nowrap;
}
.linked-room-sep::before, .linked-room-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
/* 取消单卡片整体压暗，一眼能和有效房单区分 */
.linked-room-card.is-cancelled { background: #fbfbfc; opacity: .78; }
.linked-room-card.is-cancelled:hover { opacity: 1; }
.linked-room-main { display: flex; align-items: center; gap: 10px; height: 100%; }
.linked-room-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.linked-room-badge.in { background: #1577c4; }
.linked-room-badge.res { background: #3b82f6; }
.linked-room-badge.out { background: #10b981; }
.linked-room-badge.can { background: #9ca3af; }
.linked-room-badge.noshow { background: #f59e0b; }
/* 挂S账：与订单列表「当前挂账 S」同色（紫底白字 S） */
.linked-room-badge.s { background: #7c3aed; }
/* 房号/主入住人前的 S 小标记（皓谷「S 1020」「S 郑艳平」） */
.linked-room-s { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 3px; margin-right: 4px; border-radius: 3px; background: #7c3aed; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; flex-shrink: 0; cursor: default; }
.linked-room-info { flex: 1; min-width: 0; }
.linked-room-number { font-weight: 700; font-size: 14px; color: var(--text); line-height: 18px; }
.linked-room-status { font-size: 11px; color: var(--muted); margin-left: 4px; }
.linked-room-name { font-size: 12px; color: var(--text); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 18px; }
.linked-room-toggle { margin-left: auto; color: var(--muted); font-size: 12px; }
.linked-room-detail { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 账务汇总栏 ---------- */
.bill-summary-bar { display: flex; gap: 20px; background: linear-gradient(135deg, #f7f9fc, #eef3f8); padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; }
.bsl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.bsv { font-size: 17px; font-weight: 700; }
.bsv.charge { color: #e23b3b; }
.bsv.payment { color: #27ae60; }
.bsv.balance-due { color: #e23b3b; }
.bsv.balance-ok { color: #27ae60; }

/* ---------- 挂账应收卡片 ---------- */
.ar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.ar-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.ar-card-body { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ar-card-actions { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fafbfc; }
.ar-row { min-width: 120px; font-size: 13px; }
.ar-row span:last-child { font-weight: 600; }
.ar-row .charge { color: #e23b3b; }
.ar-row .payment { color: #27ae60; }
.ar-row .adjustment { color: #f39c12; }

/* ---------- 房态图悬浮气泡（替代点击弹窗） ---------- */
.room-popover {
  position: fixed;
  /* 必须低于弹窗遮罩（.modal-overlay z-index:1000），否则房态气泡会盖在弹窗上 */
  z-index: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  padding: 14px 16px;
  min-width: 220px;
  max-width: 300px;
  opacity: 0;
  transform: translateY(4px) scale(.97);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none; /* 初始不可交互，visible 后开启 */
}
.room-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pop-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.pop-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}
.pop-type {
  font-size: 12px;
  color: var(--muted);
}

.pop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.pop-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0f3f7;
  color: #4a5568;
  border: 1px solid #e2e6ec;
}
.pop-tag-guest {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}
.pop-tag-dirty {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
}
.pop-tag-maint {
  background: #fce4ec;
  color: #c62828;
  border-color: #f8bbd0;
}
.pop-tag-temp {
  background: #F59E0B;
  color: #6b7280;
  border-color: #d97706;
  font-weight: 600;
}

/* 气泡内的住宿信息块（在住 / 预订）：联房 / 客人 / 到店预离 / 收款消费应收 */
.pop-info {
  margin: 2px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed #dbe3ec;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pop-info-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; }
.pop-info-k { flex: 0 0 58px; color: #8a97a5; }
.pop-info-v { flex: 1 1 auto; color: var(--ink); word-break: break-all; }
.pop-info-row.owe .pop-info-v { color: #d92b2b; font-weight: 700; }

/* 今天空着、远期有预订的提示（不占今天房态，只提醒退房日限制） */
.pop-future {
  margin: 2px 0 10px;
  padding: 6px 9px;
  background: #eef6ff;
  border: 1px dashed #9cc7f0;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #1e5f9e;
}

.pop-note {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  margin: 2px 0 10px;
  padding: 8px 10px;
  background: #fff7f0;
  border: 1px solid #f3d6bf;
  border-radius: 8px;
  color: #7a4a1e;
}
.pop-note.temp {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.pop-note-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #b45309;
}
.pop-note.temp .pop-note-label {
  color: #c2410c;
}
.pop-note-text {
  flex: 1 1 auto;
  word-break: break-all;
  white-space: pre-wrap;
}

.pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 气泡底部的双击提示 */
.pop-hint {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #dbe3ec;
  font-size: 12px;
  color: #8494a7;
  white-space: nowrap;
}
.pop-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #15467e;
  background: #15467e;
  color: #fff;
  cursor: pointer;
  transition: .15s;
  font-weight: 500;
}
.pop-btn:hover { background: #1d5b9e; border-color: #1d5b9e; }
/* 气泡内所有功能键统一：深蓝底白字 */
.pop-btn-primary,
.pop-btn-brand,
.pop-btn-danger,
.pop-btn-warn,
.pop-btn-ghost {
  background: #15467e;
  border-color: #15467e;
  color: #fff;
}
.pop-btn-primary:hover,
.pop-btn-brand:hover,
.pop-btn-danger:hover,
.pop-btn-warn:hover,
.pop-btn-ghost:hover {
  background: #1d5b9e;
  border-color: #1d5b9e;
  color: #fff;
}

/* 房态卡片加 hover 微动效 */
.room-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  z-index: 5;
}

/* 入住人卡片 / 联房列表面板 */
.guest-list { margin-top: 8px; }
.guest-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guest-card.guest-primary {
  background: #eef6ff;
  border-color: #bcdcff;
}

/* ---------- 订单详情 · 客户信息（对齐同行版式：三行九字段 + 右侧两键） ---------- */
.cust-list { margin-top: 6px; }
.cust-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.cust-card.cust-primary { background: #f5faff; border-color: #cfe3f7; }
.cust-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cust-row { display: grid; gap: 8px 16px; align-items: center; }
.cust-row-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cust-row-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1.8fr); }
.cust-row-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.6fr); }
.cust-f { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cust-f .cl { flex: none; width: 58px; text-align: right; font-size: 12px; color: var(--muted); }
.cust-f .inp { min-width: 0; flex: 1 1 auto; height: 30px; padding: 0 8px; font-size: 13px; }
/* 下拉的原生箭头会紧贴文字，留出右侧内边距（性别/证件类型这些窄框尤其明显） */
.cust-f select.inp { padding-right: 20px; }
.cust-btns { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cust-btns .btn { white-space: nowrap; padding: 6px 8px; font-size: 12px; }
@media (max-width: 760px) {
  .cust-card { grid-template-columns: 1fr; }
  .cust-btns { flex-direction: row; }
  .cust-row-1, .cust-row-2, .cust-row-3 { grid-template-columns: 1fr; }
}

/* 商家设置：子功能 Tab */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sub-tab {
  border: none; background: transparent; padding: 9px 16px; cursor: pointer;
  font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sub-tab:hover { color: var(--ink); }
.sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.sub-panel { margin-top: 4px; }

/* 楼层房号编辑 */
.rooms-edit { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.room-edit-row { display: flex; align-items: center; gap: 8px; }
.room-edit-row .inp { max-width: 130px; }
.room-edit-row select.inp { max-width: 200px; }
.rt-name { font-weight: 600; color: var(--ink); }

/* 报表：当日明细标题栏 */
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.day-head h2 { font-size: 19px; margin: 0; }

/* ========== 挂账账户列表（表格版，2026-10-26） ========== */
.ar-filter { gap: 8px; }
.ar-sum-bar {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px;
}
.ar-sum-main { display: flex; align-items: baseline; }
.ar-sum-label { font-size: 13px; color: var(--muted); margin-right: 10px; }
.ar-sum-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ar-sum-value.neg { color: #e23b3b; }
.ar-sum-value.pos { color: #1a7f4b; }
.ar-sum-tip { font-size: 12px; color: var(--muted); }
.ar-list-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.ar-list-head .spacer { flex: 1; }
.ar-list-tbl { font-size: 12.5px; }
.ar-list-tbl th { background: #f7f9fb; white-space: nowrap; }
.ar-list-tbl th.num, .ar-list-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ar-list-tbl td { vertical-align: middle; }
.ar-name { font-weight: 600; color: var(--ink); }
.ar-bal { font-weight: 700; font-size: 13.5px; }
.ar-bal.neg { color: #e23b3b; }
.ar-bal.pos { color: #1a7f4b; }
.ar-row-ops { display: flex; gap: 10px; }
.ar-op {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: #1565c0; font-size: 12.5px; font-weight: 500;
}
.ar-op:hover { text-decoration: underline; }
.ar-op.danger { color: #e23b3b; }

/* ========== 挂账明细弹窗 ========== */
.ar-detail { display: flex; flex-direction: column; gap: 4px; }
.ar-tabs { margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.ar-section-title { display: flex; align-items: center; justify-content: space-between; }
.ar-pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 10px 0; font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.ar-pager-info { margin-right: auto; }
.ar-pager-page { min-width: 40px; text-align: center; }
.ar-pager-size { padding: 3px 6px; min-height: 28px; font-size: 12px; }
.ar-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #f7f9fc; border-radius: 10px; margin-bottom: 6px;
}
.ar-detail-balance { font-size: 13px; color: var(--muted); }
.ar-detail-balance b { font-size: 18px; }
.ar-section-title {
  font-size: 14px; font-weight: 600; margin: 16px 0 8px;
  padding-bottom: 6px; border-bottom: 2px solid var(--line);
}
/* 账目表格 */
.ar-bill-tbl, .ar-pay-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ar-bill-tbl th, .ar-pay-tbl th {
  background: #f7f9fc; padding: 8px 10px; text-align: left;
  font-weight: 600; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line);
}
.ar-bill-tbl td, .ar-pay-tbl td {
  padding: 7px 10px; border-bottom: 1px solid #f0f2f5; vertical-align: middle;
}
.ar-bill-tbl tr:hover, .ar-pay-tbl tr:hover { background: #fafbfc; }
.ar-cb { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
/* 表头全选框：与行内勾选框左对齐，半选态由 JS 控制 */
.ar-cb-all { vertical-align: middle; margin: 0; }
.ar-cb-col { width: 54px; }
.ar-sel-tools { display: flex; align-items: center; gap: 6px; }
.ar-mini-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; font-weight: 400; padding: 3px 9px; border-radius: 999px;
  cursor: pointer; line-height: 1.4; transition: .15s; white-space: nowrap;
}
.ar-mini-btn:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); background: #f5f8ff; }
.ar-mini-btn:disabled { opacity: .45; cursor: not-allowed; }
.ar-charge-row { background: #fff8f0; }
.ar-settle-row { background: #f0faf0; }

/* 汇总区 */
.ar-summary {
  display: flex; align-items: center; gap: 20px; padding: 10px 14px;
  background: #f7f9fc; border-radius: 10px; margin-top: 10px; flex-wrap: wrap;
  font-size: 13px;
}
.ar-summary-row { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; }
.ar-summary-row span { white-space: nowrap; }

/* 底部操作栏 */
.ar-detail-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 10px;
  position: sticky; bottom: 0; background: #fff; z-index: 1;
}

/* ===== 挂账账目明细整页（#/ar?acc=xxx，不再是弹窗） ===== */
.ar-page-head {
  background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
}
.ar-page-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-page-name { font-size: 16px; font-weight: 700; }
.ar-kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ar-kpi {
  flex: 1 1 120px; min-width: 108px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.ar-kpi-k { font-size: 12px; color: var(--muted); }
.ar-kpi-v { font-size: 16px; font-weight: 700; margin-top: 2px; }
/* 贴底合计条：勾了几笔，下面直接看合计 */
.ar-total-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 14px -22px 0; padding: 10px 22px;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(15, 30, 40, .07);
}
.ar-total-figs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.ar-total-count { color: var(--muted); font-size: 12px; }
.ar-total-fig { white-space: nowrap; }
.ar-total-fig b { font-weight: 700; }
/* 操作按钮住进贴底条里：去掉原来的 sticky / 边框 */
.ar-total-bar .ar-detail-actions {
  position: static; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent;
}

/* 核销确认弹窗 */
.settle-confirm { text-align: center; padding: 10px 0; }
.settle-confirm-icon { font-size: 48px; margin-bottom: 8px; }
.settle-confirm-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.settleconfirm-detail {
  display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto 16px;
  background: #f7f9fc; padding: 14px 18px; border-radius: 10px;
}
.sc-row { display: flex; justify-content: space-between; align-items: center; }
.sc-label { color: var(--muted); font-size: 13px; }
.sc-value { font-size: 18px; font-weight: 700; }
.sc-sub { font-size: 11px; color: var(--muted); }
.settle-warn {
  color: #e23b3b; font-size: 12.5px; padding: 8px 12px;
  background: #fdeaea; border-radius: 8px; margin-top: 4px;
}

/* ========== 部分核销弹窗 ========== */
.settle-partial { text-align: left; }
.settle-tip {
  font-size: 12.5px; color: var(--muted);
  padding: 10px 12px; background: #f0f7ff; border-radius: 8px;
  margin-bottom: 14px; line-height: 1.5;
}
.settle-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.settle-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.settle-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: #f7f9fc; border-radius: 8px;
  font-size: 13px;
}
.settle-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.settle-tbl th, .settle-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.settle-tbl th { text-align: left; color: var(--muted); font-weight: 600; background: #fafbfc; }
.settle-tbl td { vertical-align: middle; }
.settle-tbl input { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.settle-tbl input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(18,110,110,0.12); }
.settle-footer {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  justify-content: flex-end; align-items: center;
  margin-top: 16px; padding: 14px 16px;
  background: #f7f9fc; border-radius: 10px;
}
.settle-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.settle-line-bold { font-size: 15px; font-weight: 700; }

@media (max-width: 720px) {
  .settle-cols { grid-template-columns: 1fr; }
  .settle-footer { justify-content: flex-start; }
}

/* ========== 酒店房情 —— 房态矩阵表 ========== */
.rs-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rs-toolbar-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.rs-toolbar-gap { width: 16px; }
.rs-table-wrap { overflow-x: auto; border: 1px solid #e8ecf1; border-radius: 10px; }
.rs-matrix { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 13px; }
.rs-matrix th, .rs-matrix td {
  text-align: center; padding: 7px 4px; border-bottom: 1px solid #eef1f6;
  white-space: nowrap; vertical-align: middle;
}
/* 表头日期 */
.rs-th-date { min-width: 62px; }
.rs-th-date .rs-dow { font-size: 11px; color: #888; }
.rs-th-date .rs-dval { font-size: 13px; font-weight: 700; margin-top: 2px; }
.rs-th-label { position: sticky; left: 0; z-index: 2; background: #f5f7fa; font-weight: 700; min-width: 130px; text-align: left !important; padding-left: 14px !important; }

/* 行标签列（房型名） */
.rs-label-cell { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left !important; padding-left: 14px !important; min-width: 130px; }
.rs-row-label { font-weight: 650; font-size: 13px; }
.rs-type-name { font-size: 13px; font-weight: 550; }
.rs-type-total { color: #e23b3b; font-size: 12px; margin-left: 3px; font-weight: 600; }

/* 出租率行 */
.rs-rate-row { background: #fafbfd; }
.rs-rate-cell { font-size: 12.5px; font-weight: 600; color: #555; }

/* 总计行 */
.rs-total-row { background: #f0f3f8; font-weight: 700; }
.rs-total-row td { font-weight: 700; }

/* 数字单元格：绿色可售 / 分隔 / 黑色已售 */
.rs-num-cell { font-variant-numeric: tabular-nums; }
.rs-avail { color: #0a9d5c; font-weight: 600; }
.rs-sold { color: #333; font-weight: 500; }
.rs-sep { color: #bbb; margin: 0 3px; }

/* 当日高亮列 */
.rs-today-col { background: #fff8e1 !important; box-shadow: inset 3px 0 0 var(--brand-2); }

/* 数字单元格 hover 提示 */
.rs-num-hover { cursor: pointer; }
.rs-num-hover:hover { background: #eef4fc; }

/* 房情气泡提示 */
.rs-tip {
  position: fixed;
  z-index: 2000;
  min-width: 170px;
  background: #1f2937;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  pointer-events: auto;
}
.rs-tip.visible { opacity: 1; transform: translateY(0); }
.rs-tip-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rs-tip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.9;
}
.rs-tip-label { color: rgba(255,255,255,.75); }
.rs-tip-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-tip-green { color: #4ade80; }
.rs-tip-orange { color: #fbbf24; }
.rs-tip-actions { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.rs-tip-actions .btn { min-width: 90px; }

/* ========== 报表子菜单 tab ========== */
.report-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
  overflow-x: auto;
  flex-wrap: wrap;
}
.rtab {
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
}
.rtab:hover { background: #f5f7fa; color: var(--text); }
.rtab.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 -2px 8px rgba(21,119,196,.15);
}

/* ========== 报表标题 ========== */
.rpt-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 14px 0 10px;
  white-space: pre-line;
  letter-spacing: 1px;
}

/* 报表内的小节标题（入账汇总分成「按营业项目 / 按入账人」两段） */
.rpt-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2a37;
  padding: 4px 2px 8px 8px;
  border-left: 3px solid #0f766e;
  margin-bottom: 2px;
}

/* 渠道订单统计：收入占比列（数字 + 细条形，条宽即占比） */
.ch-share { display: flex; flex-direction: column; gap: 3px; min-width: 74px; }
.ch-share span { font-variant-numeric: tabular-nums; }
.ch-share i {
  display: block; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #2f7ed8, #63a4e6);
  min-width: 2px;
}

/* ========== 营业日报表专用表格 ========== */
.rpt-daily-table th,
.rpt-daily-table td {
  padding: 7px 10px;
  font-size: 12.5px;
  white-space: nowrap;
}
.rpt-daily-table th:first-child,
.rpt-daily-table td:first-child {
  min-width: 140px;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}
.rpt-daily-table thead th:first-child {
  background: #f7f9fc;
  z-index: 2;
}
.rpt-section td {
  background: #eaf0fa !important;
  font-weight: 600;
  font-size: 13px;
  color: #1a5596;
  padding: 8px 10px;
}
.rpt-sub td {
  background: #f5f7fc !important;
  font-size: 12.5px;
  padding: 5px 10px 5px 24px;
  color: #4a6085;
}
.rpt-daily-table tbody tr:hover td { background: #fbfdff; }
.rpt-daily-table .rpt-section:hover td,
.rpt-daily-table .rpt-sub:hover td { background: inherit; }

/* ========== 订单筛选栏（紧凑版）========== */
.ord-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); padding: 0 4px; margin-top: 8px; }
.ord-tabs .tab { padding: 6px 14px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: #666; transition: all 0.15s; white-space: nowrap; }
.ord-tabs .tab:hover { color: var(--primary); background: rgba(14,165,233,0.04); }
.ord-tabs .tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.ord-filter-bar {
  padding: 10px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  margin: 10px 0; font-size: 13px;
  /* 会员报表这几个筛选栏只用 .ord-filter-bar（不是 -full），
     而全局 .inp 是 width:100%，不套 flex 并把宽度收回来，控件就会一个个撑满整行竖着排 */
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ord-filter-bar > .inp,
.ord-filter-bar > input.inp,
.ord-filter-bar > select.inp { width: auto; flex: 0 0 auto; height: 32px; padding: 0 8px; }
.ord-filter-bar > input[type='date'].inp { width: 152px; }
.ord-filter-bar > select.inp { min-width: 110px; padding-right: 22px; }
.ord-filter-bar > .btn { flex: 0 0 auto; }
.ord-filter-bar.ord-filter-full { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ord-filter-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.ord-filter-row + .ord-filter-row { margin-top: 0; }
.ord-filter-last { border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 4px; }
.ord-flabel { color: #555; font-size: 12px; white-space: nowrap; }
.inp-sm { height: 30px !important; font-size: 12px !important; padding: 0 7px !important; border-radius: 5px !important; flex-shrink: 0 !important; }

/* 筛选栏内 select/input 不拉伸 */
.ord-filter-row .inp-sm,
.ord-filter-row select.inp-sm,
.ord-filter-row input.inp-sm {
  min-width: 0;
  flex-shrink: 0;
}

/* Status checkbox row */
.ord-status-cbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ord-status-cbs input[type=checkbox] { accent-color: var(--primary); cursor: pointer; width: 14px; height: 14px; }
.ord-cb-label { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; user-select: none; color: #444; }
.ord-cb-label:hover { color: var(--primary); }
.rpt-daily-table { max-width: 100%; overflow-x: auto; display: block; }

/* ========== Order detail table (13-column) ========== */
.ord-detail-tbl { font-size: 12px; }
.ord-detail-tbl thead th {
  font-size: 12px; font-weight: 600; padding: 8px 10px;
  background: #f1f5f9; color: #334155; border-bottom: 2px solid #e2e8f0;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.ord-detail-tbl tbody td { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid #f1f5f9; font-size: 12px; }
.ord-detail-tbl tbody tr:hover td { background: #f8fafc; }

/* Status dot + text */
/* 状态气泡列 - 宽度固定 */
.ord-tbl td:nth-child(1) { width: 72px; text-align: center; vertical-align: middle; }

/* 蓝底字母 + hover深灰气泡 */
.st-bubble-wrap { display: inline-block; position: relative; }
.ord-stay-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
  margin-top: 2px;
}
.st-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: default;
}
.st-bubble-wrap:hover .st-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.st-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* 小三角箭头 */
.st-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #374151 transparent transparent transparent;
}

/* Column widths for detail table */
.ord-detail-tbl thead th:nth-child(1) { width: 60px; }   /* 状态 */
.ord-detail-tbl thead th:nth-child(2) { width: 120px; }  /* 入住人 */
.ord-detail-tbl thead th:nth-child(3) { width: 95px; }   /* 预订人 */
.ord-detail-tbl thead th:nth-child(4) { width: 96px; }   /* 渠道 */
.ord-detail-tbl thead th:nth-child(5) { width: 110px; }  /* 房型/房情 */
.ord-detail-tbl thead th:nth-child(6) { width: 140px; }  /* 抵离时间 */
.ord-detail-tbl thead th:nth-child(7) { width: 130px; }  /* 备注 */
.ord-detail-tbl thead th:nth-child(8) { width: 65px; }   /* 房间 */
.ord-detail-tbl thead th:nth-child(9) { width: 80px; }   /* 应收金额 */
.ord-detail-tbl thead th:nth-child(10){ width: 85px; }   /* 房价码 */
.ord-detail-tbl thead th:nth-child(11){ width: 65px; }   /* 协议价 */
.ord-detail-tbl thead th:nth-child(12){ width: 110px; }  /* 团队/协议 */
.ord-detail-tbl thead th:nth-child(13){ width: 130px; }  /* 订单号 */
.ord-detail-tbl thead th:nth-child(14){ width: 70px; }   /* 操作 */

/* Link-style button */
.btn-link {
  background: none !important; border: none !important; padding: 2px 6px !important;
  color: var(--primary); cursor: pointer; font-size: 12px !important;
  text-decoration: underline; box-shadow: none !important;
}
.btn-link:hover { color: #0369a1; background: rgba(14,165,233,0.06) !important; }

/* ================= 账务中心（billingcenter） ================= */
.bc-wrap { display: flex; gap: 14px; height: calc(100vh - 150px); min-height: 560px; }
.bc-left { flex: 0 0 336px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 2px; min-width: 0; }
.bc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }

.bc-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.bc-card-t { font-size: 13px; font-weight: 700; color: #26303b; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.bc-card-t::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--primary); }

/* 账户查询 */
.bc-search { position: relative; margin-bottom: 8px; }
.bc-search .inp { padding-right: 56px; }
.bc-search-ico { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9aa7b4; }
.bc-search-help { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; border-radius: 50%; border: 1px solid #cbd5e1; color: #94a3b8; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: help; }
.bc-acct-h, .bc-acct { display: grid; grid-template-columns: 1fr 44px 84px; align-items: center; gap: 6px; padding: 6px 8px; }
.bc-acct-h { font-size: 11px; color: #94a3b8; border-bottom: 1px solid #f0f3f7; padding-bottom: 4px; }
.bc-acct-h span:not(:first-child) { text-align: right; }
.bc-acct-h span:nth-child(2) { text-align: center; }
.bc-acct { border-radius: 8px; cursor: pointer; }
.bc-acct:hover { background: #f4f8fc; }
.bc-acct.on { background: #e8f2fc; box-shadow: inset 2px 0 0 var(--primary); }
.bc-acct-name { display: flex; flex-direction: row; gap: 5px; align-items: center; min-width: 0; }
.bc-acct-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-acct-name .badge { font-size: 10px; padding: 1px 7px; flex: 0 0 auto; }
.bc-acct-amt { text-align: right; font-size: 13px; font-weight: 600; }
.bc-acct-amt.due { color: #e23b3b; }
/* 账户列表的「状态」列 */
.bc-acct-st { font-size: 11.5px; color: #7b8794; text-align: center; white-space: nowrap; }
.bc-acct-empty { padding: 14px; text-align: center; color: #9aa7b4; font-size: 12px; }

/* 快捷操作 */
.bc-qg { margin-bottom: 4px; }
.bc-qg-t { font-size: 12px; color: #7c8a99; margin: 10px 0 6px; }
.bc-qg-b { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-qbtn { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; color: #334155; }
.bc-qbtn:hover { border-color: #b9d4ea; color: var(--primary); background: #f5f9fd; }
.bc-ibtn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 54px; padding: 7px 0 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bc-ibtn:hover { border-color: #b9d4ea; background: #f5f9fd; }
.bc-ibtn-ico { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bc-ibtn-t { font-size: 11px; color: #64748b; }

/* 账户详情 / 账款 */
.bc-kvs { display: flex; flex-direction: column; gap: 6px; }
.bc-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.bc-kv-k { color: #7c8a99; flex: 0 0 auto; }
.bc-kv-v { text-align: right; min-width: 0; word-break: break-all; }
.bc-kv-v.due { color: #e23b3b; font-weight: 700; }
.bc-kv-v.ok { color: #1a9e5c; font-weight: 700; }
.bc-note { margin-top: 10px; font-size: 11px; color: #64748b; line-height: 1.7; background: #f7f9fc; border-radius: 6px; padding: 8px 10px; max-height: 110px; overflow-y: auto; }
.bc-note b { color: #334155; }
.bc-ar-sum { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e2e8f0; font-size: 11px; color: #7c8a99; }

/* 汇总卡 */
.bc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bc-stat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); }
.bc-stat-k { font-size: 12px; color: #7c8a99; }
.bc-stat-v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.bc-stat.clickable { cursor: pointer; }
.bc-stat.clickable:hover { border-color: #b9d4ea; }
.bc-stat-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #b6c2ce; font-size: 20px; }

/* 筛选栏 */
.bc-filterbar { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bc-filterbar-l, .bc-filterbar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; max-width: 100%; }
.bc-seg-b { padding: 6px 13px; font-size: 12px; background: #fff; border: none; border-right: 1px solid var(--line); color: #445164; }
.bc-seg-b:last-child { border-right: none; }
.bc-seg-b:hover { background: #f5f9fd; color: var(--primary); }
.bc-seg-b.on { color: var(--primary); background: #eaf3fc; font-weight: 600; }
.bc-filter-btn { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: #445164; }
.bc-filter-btn:hover { border-color: #b9d4ea; color: var(--primary); }
.bc-scope-b { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: #445164; }
.bc-scope-b:hover { border-color: #b9d4ea; color: var(--primary); }
.bc-scope-b.on { color: var(--primary); border-color: var(--primary); background: #eaf3fc; font-weight: 600; }
.bc-pop { position: absolute; top: calc(100% + 6px); left: 0; width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(20,40,60,.14); padding: 12px; z-index: 40; }
.bc-pop-t { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.bc-pop-q { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.bc-pop-d { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 明细表 */
.bc-tablewrap { flex: 1 1 auto; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 180px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.bc-table thead th { position: sticky; top: 0; z-index: 2; background: #f7f9fb; color: #5b6b7c; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.bc-table td { padding: 7px 10px; border-bottom: 1px solid #f0f3f7; color: #33404d; }
.bc-table tbody tr:hover { background: #f8fbfe; }
.bc-table tr.voided td { color: #a4aeb9; }
.bc-table .amt { text-align: right; font-variant-numeric: tabular-nums; }
.bc-table .mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
/* 账目勾选（拆账用）：只有可拆的账单行才有勾选框 */
.bc-cb { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); vertical-align: middle; margin: 0; }
.bc-cb-th, .bc-cb-td { width: 36px; text-align: center; padding-left: 6px !important; padding-right: 6px !important; }
.bc-cb-none { color: #d3d8de; }

/* 拆账弹窗 */
.split-orig { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.split-tip { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.split-rows { display: flex; flex-direction: column; gap: 8px; }
.split-row { display: flex; align-items: center; gap: 8px; }
.split-no { width: 26px; flex: none; font-size: 12px; color: var(--muted); }
.split-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.split-sum { font-size: 13px; font-weight: 600; }
.split-sum.ok { color: #1a7f4b; }
.split-sum.bad { color: #e23b3b; }
.bc-table .muted { color: #94a3b8; }
.bc-ops { display: flex; gap: 2px; }
.bc-op { border: none; background: none; color: var(--primary); font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.bc-op:hover { background: #eaf3fc; }
.bc-op.danger { color: #e23b3b; }
.bc-op.danger:hover { background: #fdeeee; }
.bc-op-none { color: #cbd5e1; }
.bc-empty { text-align: center; padding: 64px 0; color: #9aa7b4; }
.bc-empty-ico { font-size: 42px; margin-bottom: 8px; opacity: .55; }

/* 汇总行：由房单取数 / 合计取数 两行 */
.bc-summary { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #5b6b7c; padding: 2px 4px 0; }
.bc-sum-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bc-sum-lab { font-weight: 700; color: #33404d; min-width: 78px; }
.bc-sum-n { color: #94a3b8; min-width: 40px; }
.bc-chip b { color: #7c8a99; font-weight: 400; margin-right: 3px; }
.bc-chip.due { color: #e23b3b; font-weight: 700; }
.bc-chip.due b { color: #e23b3b; }

/* 底部操作栏 */
.bc-footbar { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bc-foot-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* 在线客服 */
.bc-service { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #dbe7f3; border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 8px 22px rgba(20,60,100,.16); cursor: pointer; }
.bc-service:hover { box-shadow: 0 10px 26px rgba(20,60,100,.22); }
.bc-service-ico { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1577c4, #1aa3a3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.bc-service-tx { display: flex; flex-direction: column; line-height: 1.25; }
.bc-service-tx b { font-size: 12px; }
.bc-service-tx span { font-size: 11px; color: #94a3b8; }

/* 账务中心弹窗内部 */
.bc-modal-hint { font-size: 12px; color: #4a5a6a; background: #f4f8fc; border-left: 3px solid var(--primary); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; line-height: 1.7; }
/* 调账弹窗里的「调账后有效金额」实时预览 */
.bc-adjust-preview { font-size: 12.5px; color: #15795a; background: #f0faf5; border: 1px solid #cfe9dd; border-radius: 6px; padding: 8px 10px; margin: -6px 0 12px; }
.bc-adjust-preview .is-bad { color: #c0392b; }

/* 入账弹窗：营业项目选择器（消费 / 付款 科目树） */
.modal-box.bz-box { width: 520px; }
.bz-display { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.bz-display:hover, .bz-display:focus { border-color: #b9d4ea; outline: none; box-shadow: 0 0 0 2px rgba(31,111,178,.08); }
.bz-ph { color: #9aa9b8; }
.bz-mag { margin-left: auto; color: #8fa2b4; font-size: 14px; }
.bz-tag { flex: 0 0 auto; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e9f2fb; color: #1f6fb2; }
.bz-tag.pay { background: #eaf6ee; color: #2c8a4b; }
.bz-code { font-variant-numeric: tabular-nums; color: #4a5d70; }
.bz-name { color: #1f2d3d; }
.bz-panel { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 22px rgba(15,40,70,.09); overflow: hidden; }
.bz-search-wrap { padding: 8px 8px 7px; border-bottom: 1px solid #eef2f6; }
.bz-search { width: 100%; font-size: 12.5px; padding: 5px 8px !important; }
.bz-tree { max-height: 236px; overflow-y: auto; padding: 3px 0 6px; font-size: 12.8px; }
.bz-grp-h, .bz-sub-h { display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.bz-grp-h { padding: 6px 10px; font-weight: 600; color: #33475b; background: #f7fafc; }
.bz-sub-h { padding: 4px 10px 4px 20px; color: #5b6b7c; }
.bz-grp-h:hover { background: #eef5fb; }
.bz-sub-h:hover { background: #f4f9fd; }
.bz-caret { font-style: normal; width: 10px; color: #8fa2b4; }
.bz-item { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 38px; cursor: pointer; color: #2b3b4d; }
.bz-item:hover { background: #f2f8fd; }
.bz-item.on { background: #e8f3fc; color: #1f6fb2; font-weight: 600; }
.bz-icode { width: 44px; color: #7b8a99; font-variant-numeric: tabular-nums; }
.bz-empty { padding: 14px; text-align: center; color: var(--muted); }
.bz-hint { margin-top: 6px; font-size: 12px; color: #7b8a99; min-height: 16px; }
.bz-hint.pay { color: #2c8a4b; }
.bc-pick { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.bc-pick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #f0f3f7; cursor: pointer; font-size: 13px; }
.bc-pick-row:last-child { border-bottom: none; }
.bc-pick-row:hover { background: #f5f9fd; }
.bc-pick-row .muted { font-style: normal; font-size: 12px; }
/* 小商品订单（迷你吧）：左商品目录 + 右消费清单 */
.modal-box.mp-box { width: 1340px; max-width: 97vw; }
.mp-wrap { font-size: 12.5px; }
.mp-main { display: flex; gap: 10px; align-items: stretch; }
.mp-left { width: 296px; flex: 0 0 296px; display: flex; flex-direction: column; gap: 8px; }
.mp-search .inp { width: 100%; }
.mp-mid { flex: 0 0 32px; display: flex; align-items: center; justify-content: center; }
.mp-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #bcd7ea; background: #eef6fc;
  color: var(--primary); font-size: 17px; line-height: 1; padding: 0 0 3px; }
.mp-add:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.mp-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-scroll { border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 330px; background: #fff; }
.mp-left .mp-scroll { flex: 1 1 auto; max-height: 330px; }
.mp-ptable, .mp-rtable { width: 100%; border-collapse: collapse; }
.mp-rtable { min-width: 760px; }
.mp-ptable th, .mp-rtable th { position: sticky; top: 0; z-index: 1; background: #f5f8fb; font-weight: 500;
  color: #5b6b7c; font-size: 12px; padding: 6px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mp-ptable td, .mp-rtable td { padding: 4px 6px; border-bottom: 1px solid #f0f4f7; vertical-align: middle; white-space: nowrap; }
.mp-ptable tr:last-child td, .mp-rtable tr:last-child td { border-bottom: none; }
.mp-prow { cursor: pointer; }
.mp-prow:hover td { background: #f6fafd; }
.mp-prow.on td { background: #e8f3fc; }
.mp-code { width: 48px; color: #33475b; font-variant-numeric: tabular-nums; }
.mp-price, .mp-amt { text-align: right !important; font-variant-numeric: tabular-nums; }
.mp-price { width: 66px; }
.mp-amt { width: 62px; }
.mp-qty { width: 46px; padding: 3px 4px !important; text-align: center; }
.mp-real { width: 66px; padding: 3px 5px !important; text-align: right; }
.mp-reason { width: 84px; padding: 3px 3px !important; }
.mp-note { width: 92px; padding: 3px 5px !important; }
.mp-qtyh { width: 58px; text-align: center !important; }
.mp-realh { width: 76px; text-align: right !important; }
.mp-guest { display: inline-block; max-width: 84px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle; color: #5b6b7c; }
.mp-state { color: #c07a1d; }
.mp-at { color: #7b8a99; font-variant-numeric: tabular-nums; }
.mp-op { width: 40px; text-align: center; }
.mp-del { border: none; background: none; color: var(--danger); font-size: 12.5px; padding: 2px 4px; cursor: pointer; }
.mp-del:hover { text-decoration: underline; }
.mp-total { padding: 8px 12px; background: #f7fafc; border: 1px solid var(--line); border-radius: 8px; color: #33475b; }
.mp-total b { color: var(--primary); margin: 0 3px; font-variant-numeric: tabular-nums; }
.mp-total b.less { color: #c07a1d; }
.mp-empty { text-align: center; color: var(--muted); padding: 28px 10px; }

.bc-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-width: 380px; }
.bc-more-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; font-size: 13px; color: #334155; }
.bc-more-item:hover { border-color: #b9d4ea; color: var(--primary); background: #f5f9fd; }

/* 夜审弹窗：状态检查 + 补做 */
.bc-na { min-width: 420px; font-size: 13px; color: #334155; }
.bc-na-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.bc-na-line .inp { flex: 0 0 150px; }
.bc-na-line.bad .bc-na-v { color: #c0392b; }
.bc-na-k { flex: 0 0 76px; color: #64748b; font-size: 12px; }
.bc-na-v { line-height: 1.6; }
.bc-na-gap { height: 10px; }
.bc-na-ok { background: #f0f9f1; border-left: 3px solid #2e9e5b; border-radius: 6px; padding: 9px 12px; color: #1e7a44; line-height: 1.7; }
.bc-na-warn { background: #fdf3f0; border-left: 3px solid #d9534f; border-radius: 6px; padding: 9px 12px; color: #a33; line-height: 1.7; }
.bc-na-warn .btn { margin-top: 8px; }
.bc-na-tip { font-size: 12px; color: #8a6d3b; margin-top: 4px; }
.bc-na-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bc-na-day { font-size: 12px; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--line); }
.bc-na-day.ok { color: #1e7a44; background: #f0f9f1; border-color: #bfe3c9; }
.bc-na-day.bad { color: #a33; background: #fdf3f0; border-color: #f0c8c4; }

@media (max-width: 1360px) {
  .bc-left { flex-basis: 300px; }
}
@media (max-width: 960px) {
  .bc-wrap { flex-direction: column; height: auto; }
  .bc-left { flex-basis: auto; max-height: 430px; }
  .bc-tablewrap { max-height: 420px; }
}

/* ===== 团队订单（对齐皓谷 PMS 4.0 手册版式） ===== */
.tm-head { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 12px; }
.tm-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.tm-head-top h3 { font-size: 16px; }
.tm-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; padding: 12px 0 6px; }
.tm-kv { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; min-width: 0; }
.tm-kv-k { color: var(--muted); flex: 0 0 auto; }
.tm-kv-v { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tm-info-wide { grid-column: 1 / -1; font-size: 13px; color: var(--ink); background: #f8fafc; border-radius: 8px; padding: 7px 10px; }
.tm-kpi { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.tm-kpi span { font-size: 12px; color: #24506b; background: #eef4fa; border: 1px solid #dbe7f3; border-radius: 20px; padding: 3px 10px; }
.tm-subbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tm-subtab { font-size: 13px; padding: 6px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.tm-subtab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tm-blocktbl th, .tm-blocktbl td { padding: 8px 8px; font-size: 12.5px; }
.tm-block-ops { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tm-lnk { color: #1577c4; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.tm-lnk:hover { text-decoration: underline; }
.tm-lnk-warn { color: #d9534f; }
.tm-row-off { opacity: .55; }
.tm-editrow td { background: #fbfdff; }
.tm-editrow .inp { padding: 5px 7px; font-size: 12.5px; }
.tm-foot { font-size: 12px; color: var(--muted); padding: 8px 2px; }
.tm-note { font-size: 12px; color: #8a6d3b; background: #fffaf0; border: 1px solid #f3e3c3; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.tm-assign-head { display: flex; gap: 18px; flex-wrap: wrap; background: #f7f9fc; border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.tm-roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 7px; max-height: 300px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.tm-room { padding: 7px 4px; font-size: 12.5px; border: 1px solid #cfd9e4; background: #fff; border-radius: 6px; color: #24506b; }
.tm-room:hover { border-color: var(--primary); }
.tm-room.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.tm-chipline { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; font-size: 12.5px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f2fd; border: 1px solid #bcd9f5; color: #17527f; border-radius: 14px; padding: 2px 8px; font-size: 12px; }
.tm-chip-x { cursor: pointer; color: #7b93a8; font-weight: 700; }
.tm-chip-x:hover { color: #d9534f; }
.tm-chk-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; color: #40566b; }
.tm-chk { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tm-batchbar { display: flex; align-items: center; gap: 10px; padding: 10px 2px 4px; }
.tm-selcnt { font-size: 12px; color: var(--muted); }
.tm-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; padding: 4px 0 10px; }
@media (max-width: 1180px) {
  .tm-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 团队订单：对齐德胧版式 ============ */
/* 顶部 Tab（所有 / 今日预抵 / 明日预抵） */
.tm-tabs2 { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tm-tab2 { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #4a5b6d; cursor: pointer; padding: 8px 14px; border-bottom: 2px solid transparent; }
.tm-tab2:hover { color: var(--brand); }
.tm-tab2.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.tm-tab2-n { font-style: normal; font-size: 11px; background: #eef2f7; color: #5b6b7c; border-radius: 10px; padding: 1px 7px; }
.tm-tab2.on .tm-tab2-n { background: #e3edfb; color: var(--brand); }

/* 筛选行 */
.tm-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.tm-fl { font-size: 12.5px; color: #5b6b7c; white-space: nowrap; }
.tm-filterbar .inp, .tm-filterbar select { padding: 5px 8px; font-size: 12.5px; }

/* 统计条 */
.tm-statbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; background: #fff; border-radius: 10px; padding: 9px 14px; margin-bottom: 10px; box-shadow: var(--shadow); font-size: 12.5px; color: #4a5b6d; }
.tm-stat b { color: var(--ink); font-size: 13.5px; margin-left: 4px; }

/* 列表单元格辅助 */
.tm-tag-team { display: inline-block; margin-top: 2px; font-size: 10.5px; color: #1577c4; border: 1px solid #bcd9f5; background: #f2f8fe; border-radius: 4px; padding: 0 5px; line-height: 15px; }
.tm-ellip { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ops-col { flex-direction: row !important; gap: 10px !important; flex-wrap: wrap; }
.tm-teamlist th, .tm-teamlist td { padding: 9px 8px; font-size: 12.5px; vertical-align: top; }
.tm-teamlist th { white-space: nowrap; }

/* 分页 */
.tm-pager { display: flex; align-items: center; gap: 5px; padding: 10px 2px 4px; font-size: 12px; }
.tm-pg { min-width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 12px; color: #40566b; cursor: pointer; }
.tm-pg:hover { border-color: var(--brand); color: var(--brand); }
.tm-pg.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tm-pgsize { height: 26px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; color: #40566b; background: #fff; margin-left: 6px; }

/* 预留占房筛选条 */
.tm-blockfilter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; box-shadow: var(--shadow); font-size: 12.5px; }

/* 日期提示行 */
.tm-hintrow td { background: #f7f8fa; color: #8a97a5; font-size: 11.5px; padding: 4px 10px !important; border-top: none !important; }
.tm-datehint { white-space: nowrap; }

/* 子单列表 */
.tm-subtitle { font-size: 13px; color: #2b3d4f; font-weight: 600; margin: 2px 0 10px; }
.tm-sublist th, .tm-sublist td { padding: 8px 7px; font-size: 12.5px; vertical-align: middle; }
.tm-sublist th { white-space: nowrap; }
.tm-guestcell { min-width: 380px; }
.tm-guest-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; font-size: 12px; }
.tm-guest-ph { color: #1577c4; }
.tm-guest-l2 { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tm-guest-l2 .inp { padding: 3px 6px; font-size: 11.5px; }

/* 小标签页 */
.tm-taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-tag-item { font-size: 12.5px; background: #eef4fa; border: 1px solid #dbe7f3; color: #24506b; border-radius: 14px; padding: 3px 12px; }

@media (max-width: 1180px) {
  .tm-guestcell { min-width: 260px; }
  .tm-statbar { gap: 12px; }
}

/* 子单列表/预留表：避免列挤压换行（表格宽度不足时横向滚动） */
.tm-sublist { min-width: 1200px; }
.tm-sublist .badge { white-space: nowrap; }
.tm-blocktbl { min-width: 1320px; }
.tm-teamlist { min-width: 1180px; }

/* ============ 团队子单列表：入住人信息两行（对齐德胧） ============ */
.tm-subhead { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.tm-subhead .tm-subtitle { margin: 0; }

.tm-guestcell { min-width: 500px; }
.tm-guest-row { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.tm-guest-row:last-child { margin-bottom: 0; }
.tm-guest-row .inp { padding: 4px 6px; font-size: 12px; height: 28px; }
.tm-guest-row select {
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
  padding: 3px 4px; font-size: 12px; height: 28px; outline: none;
}
.tm-guest-row select:focus { border-color: var(--brand); }
.tm-idbtn {
  padding: 3px 8px !important; font-size: 11.5px !important; height: 28px; line-height: 1;
  color: var(--brand) !important; border: 1px solid #bcd9f5 !important;
  background: #f2f8fe !important; white-space: nowrap; border-radius: 5px; cursor: pointer;
}
.tm-eye, .tm-mag { cursor: pointer; font-size: 13px; color: #7b8a99; padding: 0 2px; user-select: none; line-height: 28px; }
.tm-eye:hover, .tm-mag:hover { color: var(--brand); }
.btn-xs { padding: 2px 7px; font-size: 11.5px; border-radius: 5px; }

/* 入住人变宽后子单表整体加宽，靠外层 tbl-wrap 横向滚动 */
.tm-sublist { min-width: 1180px; }
@media (max-width: 1180px) {
  .tm-guestcell { min-width: 500px; }
}

/* 子单表：操作列不允许被压缩成单字竖排 */
.tm-sublist td, .tm-sublist th { word-break: keep-all; }
.tm-sublist .tm-ops-col { flex-wrap: wrap; gap: 5px 12px !important; min-width: 126px; }
.tm-sublist .tm-ops-col .tm-lnk { flex: 0 0 auto; }

/* 子单表列宽微调：一屏放下（对齐德胧紧凑版式） */
.tm-sublist { min-width: 1356px; }
.tm-sublist th:first-child, .tm-sublist td:first-child { width: 34px; padding-left: 8px; padding-right: 4px; }
.tm-sublist th:nth-child(5), .tm-sublist td:nth-child(5) { white-space: nowrap; font-size: 11.5px; }
.tm-sublist th:nth-child(8), .tm-sublist td:nth-child(8) { width: 78px; }
.tm-sublist th:nth-child(9), .tm-sublist td:nth-child(9) { width: 68px; }
.tm-sublist .tm-guest-row { gap: 3px; }
.tm-sublist .tm-idbtn { padding: 3px 6px !important; font-size: 11px !important; }
.tm-sublist .tm-guestcell { min-width: 566px; }
.tm-sublist .tm-guest-row .tm-idbtn { padding: 2px 5px !important; font-size: 10.5px !important; }
/* 「自动转账项目」「转入账户」表头允许折行，省出横向空间 */
.tm-sublist th:nth-child(8) { width: 66px; white-space: normal; line-height: 1.25; }
.tm-sublist th:nth-child(9) { width: 62px; white-space: normal; line-height: 1.25; }

/* 预留表：状态/房型列不允许折行 */
.tm-blocktbl { min-width: 1246px; }
.tm-blocktbl .badge { white-space: nowrap; }
.tm-blocktbl th:nth-child(3), .tm-blocktbl td:nth-child(3) { white-space: nowrap; }
.tm-blocktbl th:nth-child(5), .tm-blocktbl td:nth-child(5) { white-space: nowrap; }
.tm-blocktbl td:nth-child(6), .tm-blocktbl td:nth-child(7),
.tm-blocktbl td:nth-child(9), .tm-blocktbl td:nth-child(10) { white-space: nowrap; }

/* 预留表列宽精调：一屏放下 */
.tm-blocktbl th:first-child, .tm-blocktbl td:first-child { width: 34px; padding-left: 8px; padding-right: 4px; }
.tm-blocktbl th:nth-child(2), .tm-blocktbl td:nth-child(2) { width: 44px; padding-left: 6px; padding-right: 6px; }
.tm-blocktbl th:nth-child(6), .tm-blocktbl td:nth-child(6) { width: 62px; }
.tm-blocktbl th:nth-child(7), .tm-blocktbl td:nth-child(7) { width: 84px; white-space: normal; line-height: 1.2; }
.tm-blocktbl th:nth-child(11), .tm-blocktbl td:nth-child(11),
.tm-blocktbl th:nth-child(12), .tm-blocktbl td:nth-child(12) { width: 118px; font-size: 11px !important; }

/* ===== 打印选项弹窗（订单详情 → 打印） ===== */
.modal-box.pr-modal { width: 660px; }
.pr-tabs { display: flex; gap: 26px; border-bottom: 1px solid #e3e8ef; margin-bottom: 16px; }
.pr-tab { background: none; border: 0; padding: 8px 2px 10px; font-size: 14px; color: #555; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.pr-tab:hover { color: #1577c4; }
.pr-tab.active { color: #1577c4; border-bottom-color: #1577c4; font-weight: 600; }
.pr-tab.disabled { color: #c0c6cf; cursor: not-allowed; }
.pr-tab.disabled:hover { color: #c0c6cf; }
.pr-row { display: flex; align-items: flex-start; margin-bottom: 13px; font-size: 13px; }
.pr-label { width: 84px; flex: none; color: #666; padding-top: 2px; }
.pr-opts { display: flex; flex-wrap: wrap; gap: 10px 26px; flex: 1; }
.pr-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #333; }
.pr-opt input { margin: 0; accent-color: #1577c4; cursor: pointer; }
.pr-hint { color: #9aa3af; font-size: 12px; line-height: 2; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #e8edf3; }


/* ===== 班次（每天登录选班次）===== */
.shift-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 15px;
  border: 1px solid var(--line); background: #f6f9fb;
  color: var(--ink); font-size: 13px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.shift-chip:hover { background: #eef5f9; border-color: #cfdde8; }
.shift-chip.is-empty { color: var(--danger); border-color: #f2c9c9; background: #fdf5f5; }
.shift-dot { width: 7px; height: 7px; border-radius: 50%; background: #1aa3a3; }
.shift-chip.is-empty .shift-dot { background: var(--danger); }

.shift-box { width: 520px; max-width: 92vw; }
.shift-picker { padding: 2px 0 4px; }
.shift-who { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.shift-note { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shift-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 20px 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, background .15s, transform .1s;
}
.shift-opt:hover { border-color: var(--brand-2); background: #f3fbfb; }
.shift-opt:active { transform: scale(.985); }
.shift-opt.active { border-color: var(--brand); background: #eaf7f7; }
.shift-opt-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.shift-opt-time { font-size: 12px; color: var(--muted); }
.shift-opt.active .shift-opt-name { color: var(--brand); }
/* 必选提示（每天第一次登录未选班次时） */
.shift-forced { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: #b3541e; background: #fff8f0; border-left: 3px solid #e8a33d; border-radius: 6px; padding: 8px 10px; }

/* ===== 实时房情（酒店房情弹窗）===== */
.modal-box.rt-box { width: 800px; max-width: 96vw; }
.rt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.rt-head-label { font-size: 12.5px; color: var(--muted); }
.rt-head .rt-date { width: 150px; }
.rt-loading { padding: 24px 0; text-align: center; color: var(--muted); font-size: 13px; }

.rt-sec { margin-bottom: 16px; }
.rt-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.rt-sec-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.rt-badge {
  font-size: 11px; line-height: 17px; padding: 0 8px; border-radius: 9px;
  color: #0b7285; background: #e6f6f8; border: 1px solid #cdeef2;
}

.rt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.rt-table th, .rt-table td {
  border: 1px solid #e8eef4; padding: 8px 6px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rt-table th { background: #f6f9fb; color: #5b6b7c; font-weight: 600; }
.rt-table td.rt-rowlabel { background: #fafcfd; color: #5b6b7c; font-weight: 600; width: 76px; }
.rt-val { color: #33475b; font-variant-numeric: tabular-nums; }
.rt-val-strong { color: var(--ink); font-weight: 700; }

.rt-formula { margin-top: 4px; font-size: 11.5px; line-height: 1.95; color: #7d8b9a; }
.rt-formula-note { margin-top: 4px; color: #a3aebb; font-size: 11px; line-height: 1.7; white-space: normal; }

/* ===== 订单列表底部数据汇总条 ===== */
.ord-sum-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
  padding: 9px 2px 10px;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgba(15, 23, 42, .05);
  font-size: 12.5px;
  color: #475569;
  backdrop-filter: saturate(180%) blur(4px);
}
.ord-sum-text b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 1px;
}

/* ===== 团队预留「日均价」可点击 + 手动修改房价弹窗 ===== */
.tm-price-cell { display: inline-flex; align-items: baseline; gap: 6px; }
.tm-price-static { color: #3f51c4; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-price-lnk {
  color: #3f51c4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px dashed rgba(63, 81, 196, .45);
  cursor: pointer;
}
.tm-price-lnk:hover { color: #2f3fa8; border-bottom-style: solid; }
.tm-price-edit { font-size: 11px; color: #9aa7b4; text-decoration: none; cursor: pointer; }
.tm-price-edit:hover { color: #3f51c4; text-decoration: underline; }

.modal-box.pm-price-modal { width: 640px; max-width: 96vw; }
.pm-warn-h { display: flex; align-items: center; gap: 8px; color: #d83a3a; font-size: 13.5px; font-weight: 600; }
.pm-warn-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid #d83a3a; color: #d83a3a;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.pm-price-body { padding-top: 2px; }
.pm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; }
.pm-tab { padding: 7px 14px; font-size: 13px; color: var(--muted); cursor: default; }
.pm-tab.on { color: #2f6fed; font-weight: 600; border-bottom: 2px solid #2f6fed; margin-bottom: -1px; }
.pm-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pm-row > label { flex: 0 0 72px; padding-top: 8px; font-size: 12.5px; color: #64748b; }
.pm-val { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); min-height: 34px; }
.pm-val.pm-col { flex-direction: column; align-items: stretch; gap: 6px; }
.pm-val.pm-range .inp { flex: 0 0 150px; }
.pm-dash { color: #9aa7b4; }
.pm-unit { color: #94a3b1; font-size: 12px; }
.pm-tip { margin: -4px 0 12px 84px; font-size: 11.5px; color: #7d8b9a; }
.pm-tip-err { color: #d83a3a; }
.pm-note {
  margin: 2px 0 4px; padding: 8px 10px;
  background: #f7f9fc; border: 1px solid #eaeff6; border-radius: 8px;
  font-size: 11.5px; line-height: 1.7; color: #7d8b9a;
}

/* ===== 团队预留「分段房价」弹窗 ===== */
.pm-seg-list { display: flex; flex-direction: column; gap: 8px; }
.pm-seg-row { display: flex; align-items: center; gap: 6px; }
.pm-seg-row .inp[type="date"] { width: 136px; }
.pm-seg-row .inp[type="number"] { width: 104px; text-align: right; }
.pm-seg-idx {
  flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center;
  background: #eef3fa; color: #3f51c4; border-radius: 50%; font-size: 11.5px; font-weight: 600;
}
.pm-seg-del { font-size: 12px; color: #d83a3a; white-space: nowrap; }
.pm-seg-del:hover { text-decoration: underline; }
/* 日均价列的「分段」小标记 */
.tm-price-seg {
  display: inline-block; padding: 0 5px; margin-right: 4px;
  font-size: 10.5px; line-height: 16px; border-radius: 3px;
  background: #eaf3ff; color: #2f7ed8; border: 1px solid #c7ddf7; cursor: default;
}

/* ===== 订单详情「打印」中心：用房清单 / 登记入住单 / 联房登记入住单 ===== */
.modal-box.pc-modal { width: 560px; max-width: 96vw; }
.pc-box { padding-top: 2px; }
.pc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 14px; }
.pc-card {
  border: 1px solid #cfd6df;
  border-radius: 4px;
  background: #fff;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: #26323d;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  padding: 0 6px;
}
.pc-card:hover { border-color: #7ea6e6; }
.pc-card.on { border-color: #2f6fed; background: #eef4ff; color: #1c4fbf; font-weight: 600; }
.pc-opts { background: #f7f9fc; border: 1px solid #e6ecf4; border-radius: 6px; padding: 12px 14px 14px; min-height: 96px; }
.pc-opts-title { text-align: center; font-size: 12.5px; color: #475569; font-weight: 600; margin-bottom: 10px; }
.pc-chk { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.pc-chk + .pc-chk { margin-top: 8px; }
.pc-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #334155; cursor: pointer; }
.pc-opt input { margin: 0; }
.pc-hint { margin-top: 10px; font-size: 11.5px; color: #8a97a5; text-align: center; }
.pc-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-pick {
  min-width: 118px;
  border: 1px solid #dfe6ef;
  background: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1.5;
}
.pc-pick:hover { border-color: #7ea6e6; }
.pc-pick.on { border-color: #2f6fed; background: #eef4ff; }
.pc-pick-t { font-size: 12.5px; color: #1f2a37; font-weight: 600; }
.pc-pick-s { font-size: 11px; color: #8a97a5; }
.pc-pick-room { display: block; min-width: 128px; }
.pc-pick-room .pc-pick-t { display: flex; align-items: center; font-weight: 600; }

/* ===== 迷你吧：已入账小商品清单 + 行内退款 ===== */
.mp-histsplit td {
  background: #f2f6fa; color: #46586a; font-size: 12px;
  padding: 6px 8px; border-top: 6px solid #fff;
}
.mp-histrow td { background: #fcfdff; color: #3b4b5b; }
.mp-histrow:hover td { background: #f7fbff; }
.mp-st { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; line-height: 1.7; }
.mp-st-ok { background: #eef7f0; color: #1e7a44; border: 1px solid #cbe8d3; }
.mp-st-refunded { background: #fdf2f2; color: #b23c3c; border: 1px solid #f2cfcf; }
.mp-st-part { background: #fff7e8; color: #a9761c; border: 1px solid #f0dfb8; }
.mp-st-refund { background: #f4f5f8; color: #5b6b7c; border: 1px solid #dfe4ea; }
.mp-st-void { background: #f4f5f8; color: #8a97a5; border: 1px solid #e3e8ef; }
.mp-histmore td { text-align: center; padding: 7px; }
.mp-histmore a { color: var(--primary); font-size: 12px; text-decoration: none; }
.mp-histmore a:hover { text-decoration: underline; }
.mp-refundtr td { background: #fff8f2; border-top: 1px solid #f3d9c4; }
.mp-rf-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.mp-rf-bar .inp { padding: 3px 6px !important; }

/* 实时房情：服务端未升级时前端兜底计算的提示条 */
.rt-local-tip {
  margin: 0 0 10px; padding: 7px 10px;
  background: #fff8ec; border: 1px solid #f0dfb8; border-radius: 6px;
  color: #a9761c; font-size: 11.5px; line-height: 1.6;
}

/* 团队预留：房型名可点（看预留信息），详情链接直接打开预订单 */
.tm-type-lnk { color: inherit; text-decoration: none; }
.tm-type-lnk:hover b { color: #3f51c4; text-decoration: underline; }

/* 账务中心：没选账户时的空白态 */
.bc-empty-big { padding: 96px 20px; }
.bc-empty-big .bc-empty-ico { font-size: 44px; opacity: .5; }

/* ===== 订单详情：编辑模式 / 待保存的新入住人卡片 / 身份证读取面板 ===== */
/* 新增的空白入住人卡片，版式必须和「已入住客人」卡片完全一致：
   左侧三行九字段 + 右侧按钮列，所以这里不能加虚线边框/异色底，
   只在按钮列上方挂一个很小的「未保存」标记。 */
.cust-card.cust-pending { background: #fff; border-color: var(--line); }
.cust-pending-tag {
  font-size: 11px; color: #a9761c; text-align: center; line-height: 1.4;
  padding: 1px 2px; border: 1px solid #f0dfb8; border-radius: 4px; background: #fff7e8;
}
.cust-pending-tip {
  margin: -2px 0 8px; padding: 5px 9px;
  background: #fff7e8; border: 1px solid #f0dfb8; border-radius: 6px;
  font-size: 11.5px; color: #a9761c; line-height: 1.6;
}

/* ========== 发票查询：分字段搜索 ========== */
.inv-filter {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.inv-filter-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.inv-filter-row + .inv-filter-row { margin-top: 10px; }

/* 字段下拉 + 输入框 拼成一体的快捷搜索框 */
.inv-search {
  display: inline-flex; align-items: stretch; height: 32px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
}
.inv-search select {
  border: 0; outline: none; background: #f4f7fb; color: #33475b;
  font-size: 12.5px; padding: 0 8px; width: 104px; height: 100%;
  border-right: 1px solid var(--line); cursor: pointer;
}
.inv-search input {
  border: 0; outline: none; padding: 0 10px; font-size: 13px; height: 100%; min-width: 320px;
}

/* 已生效条件标签 */
.inv-chips {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.inv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 8px; background: #eef4fd; border: 1px solid #cfe0f7; border-radius: 20px;
  font-size: 12px; color: #1c4f8f;
}
.inv-chip b { font-weight: 600; color: #2f6bb5; }
.inv-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: #cfe0f7; color: #1c4f8f;
  text-decoration: none; font-size: 12px; line-height: 1;
}
.inv-chip-x:hover { background: #e23b3b; color: #fff; }
.inv-chip-clear { font-size: 12px; color: #7d8b9a; text-decoration: none; }
.inv-chip-clear:hover { color: #e23b3b; text-decoration: underline; }

/* 多条件面板 */
.inv-adv {
  margin-top: 10px; padding: 12px; background: #f8fafc;
  border: 1px solid var(--line); border-radius: 8px;
}
.inv-adv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px;
}
.inv-adv-item { display: flex; align-items: center; gap: 8px; }
.inv-adv-lb {
  flex: none; width: 58px; text-align: right; font-size: 12.5px; color: #55657a;
}
.inv-adv-item input {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px;
  font-size: 13px; height: 30px; outline: none; background: #fff;
}
.inv-adv-item input:focus { border-color: var(--primary); }
.inv-adv-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}

/* 报表里的班次标签（会员充值/消费记录）；橙色 = 老数据按时间推断出来的 */
.shift-tag {
  display: inline-block; padding: 1px 7px; border-radius: 10px; white-space: nowrap;
  background: #eef4fd; color: #1c4f8f; font-size: 11.5px;
}
.shift-tag.inf { background: #fdf3e3; color: #a9761c; }

/* ---- 报表中心首页（卡片宫格，参考皓谷报表中心） ---- */
.rpt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.rpt-card {
  background: #fff;
  border: 1px solid var(--line, #e5eaf0);
  border-radius: 12px;
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.rpt-card:hover {
  border-color: #7cc4e8;
  box-shadow: 0 6px 18px rgba(31, 92, 138, .12);
  transform: translateY(-2px);
}
.rpt-card-icon { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.rpt-card-label { font-size: 14px; font-weight: 600; color: var(--text, #2c3e50); }
.rpt-card-desc { font-size: 11px; color: #8a97a5; margin-top: 4px; line-height: 1.4; }
.rpt-crumb {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #e5eaf0);
}
