/* pages-room-views.css —— 房态中心 · 日历房态 / 房态数据（独立命名空间 .rv-*）
 *
 * 作用范围：只服务 js/pages/room-calendar.js（.rv-cal-*）与 js/pages/room-status-data.js
 * （.rv-rsd-*），全部规则以 .rv / .rv-* 开头，不触碰 styles.css、board2.css 或其它 pages-*.css
 * 的既有类名。依赖 css/pages.css 提供的品牌变量与 .pages / .btn / .pages-field / .pages-flash
 * 基础样式，因此 index.html 里必须排在 css/pages.css 之后（接线清单见两个模块文件末尾）。
 *
 * 视觉基准（对齐 docs/喔哦修改意见.docx media 图 8 / 图 9）：
 *   - 13px 正文、白色面板、#dbe7f2 描边、14px 圆角、表头浅蓝灰；
 *   - 日历：左两列冻结（房型 / 房号），14 天日期列，周末浅红、今天橙黄，订单块 预订蓝 / 在住青 /
 *     不可住紫 / 离店灰；
 *   - 房态数据：四组表头、房型列冻结、数字语义色（在住/干净绿、脏房橙、维修红）、出租率进度条。
 *
 * 断点：业务页模块只在 ≥900px 挂载；≤899px 仍保证横向滚动 / 单列不塌（预览与窄窗验收用）。
 */

/* ========================================================================== */
/* 0. 通用：变量 / 布局 / 工具栏 / 说明 / 状态 / 骨架                             */
/* ========================================================================== */
.rv {
  --rv-ink: #193b34;
  --rv-ink-2: #31546e;
  --rv-muted: #7c9188;
  --rv-line: #dbe7f2;
  --rv-line-soft: #edf3f9;
  --rv-panel: #ffffff;
  --rv-blue: #2f7fc4;
  --rv-blue-bg: #e8f2fd;
  --rv-teal: #0f9b87;
  --rv-teal-bg: #e0f6f0;
  --rv-green: #087c61;
  --rv-green-bg: #e4f5ec;
  --rv-orange: #b5762a;
  --rv-orange-bg: #fdf2e2;
  --rv-red: #c84d45;
  --rv-red-bg: #fbeae7;
  --rv-purple: #7b5fc0;
  --rv-purple-bg: #f3eefc;
  --rv-neutral: #6f8298;
  --rv-neutral-bg: #eef2f7;

  min-width: 0;
}

.rv-muted { color: #9aabba; font-weight: 400; }
.rv-hint { font-size: 10.5px; color: #8199ab; line-height: 1.6; }
.rv-error { margin: 8px 0 0; }
.rv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* —— 工具栏 —— */
.rv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 5px 20px #37648a10;
}

.rv-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.rv-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.rv-toolbar-actions .btn.small { min-height: 34px; }

.rv-range-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rv-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: #fff;
  color: #476e60;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.rv-icon-btn:hover { background: #f3f9fd; border-color: #b9d3e6; }
.rv-icon-btn:disabled { opacity: .45; cursor: not-allowed; }

.rv-pill-btn {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: #fff;
  color: #5b7387;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rv-pill-btn:hover { background: #f3f9fd; border-color: #b9d3e6; }
.rv-pill-btn.is-active { background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; }
.rv-pill-btn.is-active:hover { background: #2874b5; }
.rv-pill-btn:disabled { opacity: .55; cursor: not-allowed; }

.rv-date {
  width: 140px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rv-ink-2);
  font: 12px/1.4 inherit;
}

.rv-date:focus { outline: 0; border-color: var(--rv-blue); box-shadow: 0 0 0 3px #2f7fc41a; }

.rv-range {
  font-size: 11px;
  color: #6b8296;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rv-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #5b7387;
  white-space: nowrap;
}

.rv-filter select,
.rv-filter input {
  height: 34px;
  max-width: 168px;
  padding: 0 8px;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rv-ink-2);
  font: 11.5px/1.4 inherit;
  font-weight: 400;
  outline: 0;
}

.rv-filter select:focus,
.rv-filter input:focus { border-color: var(--rv-blue); box-shadow: 0 0 0 3px #2f7fc41a; }

.rv-filter-search input { width: 124px; }

.rv-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4a657c;
  white-space: nowrap;
  cursor: pointer;
}

.rv-check input { width: 14px; height: 14px; accent-color: var(--rv-blue); }

.rv-toolbar-hint { margin-left: 2px; }

/* —— 说明面板 —— */
.rv-help {
  padding: 12px 16px;
  border: 1px dashed #bcd6ea;
  border-radius: 12px;
  background: #f4f9ff;
  color: #45657c;
  font-size: 12px;
  line-height: 1.7;
}

.rv-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #24425a;
  font-size: 12.5px;
}

.rv-help-list { margin: 0; padding-left: 18px; }
.rv-help-list li { margin: 3px 0; }
.rv-help-list b { color: #24425a; }

.rv-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 2px 0 6px;
  border-radius: 2px;
  background: var(--rv-neutral-bg);
  vertical-align: -1px;
}

.rv-dot:first-child { margin-left: 0; }
.rv-dot.is-booked { background: var(--rv-blue); }
.rv-dot.is-inhouse { background: var(--rv-teal); }
.rv-dot.is-blocked { background: var(--rv-purple); }
.rv-dot.is-checkout { background: #8a9bb0; }
.rv-dot.is-today { background: #e8a33e; }

/* —— 状态 / 空态 / 未就绪 —— */
.rv-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 20px;
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 5px 20px #37648a10;
  text-align: center;
}

.rv-state-icon { font-size: 28px; line-height: 1; color: #8aa9c2; }
.rv-state strong { font-size: 14px; color: #24425a; }
.rv-state p { margin: 0; max-width: 660px; color: #6b8296; font-size: 12px; line-height: 1.7; }
.rv-state .rv-hint { max-width: 660px; }
.rv-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.rv-state.is-compact {
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: none;
  text-align: left;
}

.rv-code {
  display: block;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #e3edf5;
  border-radius: 8px;
  background: #f4f8fb;
  color: #31546e;
  font: 11px/1.6 ui-monospace, Menlo, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
}

.rv-flash { margin: 0; }

/* —— 骨架 —— */
.rv-skeleton {
  padding: 14px;
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  overflow: hidden;
}

.rv-sk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #4a657c;
  font-size: 12px;
  font-weight: 700;
}

.rv-sk-bar,
.rv-sk-cell {
  background: linear-gradient(90deg, #eef2f7 25%, #f9fbfd 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: rv-shimmer 1.4s ease infinite;
}

.rv-sk-bar { width: 120px; height: 8px; border-radius: 4px; }
.rv-sk-grid { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.rv-sk-row { display: flex; gap: 3px; }
.rv-sk-cell { flex: 1 1 0; height: 24px; border-radius: 3px; min-width: 0; }
.rv-sk-row.is-head .rv-sk-cell { height: 26px; background: #f2f7fb; animation: none; }
.rv-sk-cell.is-name { flex: 0 0 118px; }
.rv-skeleton .rv-hint { margin: 10px 0 0; }

@keyframes rv-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ========================================================================== */
/* 1. 日历房态（.rv-cal-*）                                                     */
/* ========================================================================== */
.rv-cal-panel {
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 5px 20px #37648a10;
  overflow: hidden;
}

.rv-cal-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rv-line-soft);
}

.rv-cal-title { margin: 0; color: #24425a; font-size: 14px; font-weight: 800; }
.rv-cal-title .rv-muted { font-size: 11px; font-weight: 500; }

.rv-cal-scroll {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 320px);
  min-height: 180px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.rv-cal-table {
  --rv-type-w: 128px;
  --rv-room-w: 116px;
  --rv-date-w: 84px;
  --rv-head-h: 40px;

  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

.rv-cal-table col.rv-col-type { width: var(--rv-type-w); }
.rv-cal-table col.rv-col-room { width: var(--rv-room-w); }
.rv-cal-table col.rv-col-date { width: var(--rv-date-w); }

/* —— 表头 —— */
.rv-cal-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: var(--rv-head-h);
  padding: 4px;
  background: #f6f9fc;
  border-right: 1px solid var(--rv-line-soft);
  border-bottom: 1px solid var(--rv-line);
  color: #5b7387;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.rv-cal-table thead tr:nth-child(2) th { top: var(--rv-head-h); }

.rv-cal-table thead th.rv-cal-type,
.rv-cal-table thead th.rv-cal-room {
  z-index: 6;
  background: #f0f5fa;
  text-align: left;
}

.rv-cal-table thead th.rv-cal-type { padding-left: 10px; font-size: 12px; color: #31546e; }
.rv-cal-table thead th.rv-cal-room { padding-left: 10px; font-size: 11px; }

.rv-cal-table thead th.rv-cal-corner { left: 0; }
.rv-cal-table thead th.rv-cal-corner.rv-cal-room { left: var(--rv-sticky-type-w, var(--rv-type-w)); }

.rv-cal-md { display: block; font-size: 12px; font-weight: 800; color: #31546e; font-variant-numeric: tabular-nums; }
.rv-cal-wd { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 600; color: #8497a7; }

.rv-cal-table thead th.is-weekend { background: #fdf2f0; }
.rv-cal-table thead th.is-today { background: #fff3df; }
.rv-cal-table thead th.is-today .rv-cal-md { color: #b56518; }
.rv-cal-table thead th.is-today .rv-cal-wd { color: #c07a1f; }

/* 库存表头行 */
.rv-cal-table thead .rv-cal-invhead {
  height: 30px;
  background: #eef6fc;
  color: #6b8296;
  font-weight: 600;
}

.rv-cal-table thead .rv-cal-invhead.is-weekend { background: #fbf4f3; }
.rv-cal-table thead .rv-cal-invhead.is-today { background: #fff6e6; }
.rv-inv-label { display: block; font-size: 8.5px; line-height: 1.25; color: #7f95a8; }
.rv-inv-value {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--rv-blue);
  font-variant-numeric: tabular-nums;
}

/* —— 冻结列（房型 / 房号） —— */
.rv-cal-table tbody th,
.rv-cal-table tbody td {
  border-right: 1px solid var(--rv-line-soft);
  border-bottom: 1px solid var(--rv-line-soft);
  height: 38px;
}

.rv-cal-table .rv-cal-type {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 7px 10px;
  background: #f7fafc;
  border-right: 1px solid var(--rv-line);
  color: #31546e;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.rv-cal-type-name { display: block; line-height: 1.35; }
.rv-cal-type-sub {
  display: block;
  margin-top: 2px;
  color: #8a9dae;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.rv-cal-table .rv-cal-room {
  position: sticky;
  left: var(--rv-sticky-type-w, var(--rv-type-w));
  z-index: 3;
  padding: 0 8px;
  background: #fbfdff;
  border-right: 1px solid var(--rv-line);
  color: var(--rv-ink);
  text-align: left;
  white-space: nowrap;
}

.rv-room-no {
  display: inline-block;
  margin-right: 5px;
  color: var(--rv-ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}

.rv-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 2px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}

.rv-badge.is-idle { background: var(--rv-blue-bg); color: var(--rv-blue); }
.rv-badge.is-check { background: var(--rv-purple-bg); color: var(--rv-purple); }
.rv-badge.is-stop { background: var(--rv-neutral-bg); color: var(--rv-neutral); }

/* —— 日期单元格 —— */
.rv-cal-cell {
  padding: 2px 3px;
  background: #fff;
  text-align: center;
  vertical-align: middle;
}

.rv-cal-cell.is-weekend { background: #fdf8f7; }
.rv-cal-cell.is-today { background: #fffaf0; }
.rv-cal-cell.is-empty { cursor: default; }

/* 订单块 */
.rv-order {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 32px;
  padding: 3px 5px;
  border: 0;
  border-left: 3px solid var(--rv-blue);
  border-radius: 4px;
  background: var(--rv-blue-bg);
  color: #1f5f91;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  line-height: 1.25;
}

.rv-order.is-booked { border-left-color: var(--rv-blue); background: var(--rv-blue-bg); color: #1f5f91; }
.rv-order.is-inhouse { border-left-color: var(--rv-teal); background: var(--rv-teal-bg); color: #0b6b5c; }
.rv-order.is-checkout { border-left-color: #8a9bb0; background: #f1f4f8; color: #5c6b7a; }
.rv-order.is-blocked { border-left-color: var(--rv-purple); background: var(--rv-purple-bg); color: #6b5d9a; }

.rv-order:hover { filter: brightness(.975); box-shadow: 0 2px 8px #2f7fc426; }
.rv-order:focus-visible { outline: 2px solid var(--rv-blue); outline-offset: 1px; }

.rv-order-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rv-order-meta {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  opacity: .85;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rv-order[data-span="1"] .rv-order-name { font-size: 10.5px; }

/* 不可住块 */
.rv-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 32px;
  padding: 2px 4px;
  border: 1px dashed #b9aede;
  border-radius: 4px;
  background: var(--rv-purple-bg);
  color: #6b5d9a;
  font-size: 10px;
  text-align: center;
}

.rv-block-label { font-weight: 800; line-height: 1.25; }
.rv-block-reason {
  overflow: hidden;
  font-size: 8.5px;
  opacity: .8;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* —— 库存行 —— */
.rv-cal-invrow .rv-cal-type { background: #eef6fc; }
.rv-cal-invrow .rv-cal-room {
  padding: 0 8px;
  background: #f4f9fe;
  color: #6b8296;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.rv-inv-total { display: block; color: #93a6b6; font-size: 8.5px; font-weight: 600; }

.rv-cal-invcell {
  padding: 2px 3px;
  background: #f8fbfe;
  color: #5b7387;
  font-size: 10.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rv-cal-invcell.is-weekend { background: #fbf4f3; }
.rv-cal-invcell.is-today { background: #fff6e6; }
.rv-inv-num { color: var(--rv-blue); font-weight: 700; white-space: nowrap; }
.rv-cal-invcell.is-zero .rv-inv-num { color: var(--rv-red); }

/* 行 hover：只提亮非冻结列，冻结列保持实色，避免 sticky 透明串字 */
.rv-cal-roomrow:hover td { background: #f9fcff; }
.rv-cal-roomrow:hover td.is-weekend { background: #fbf6f5; }
.rv-cal-roomrow:hover td.is-today { background: #fff8ec; }

/* —— 图例 —— */
.rv-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 8px 16px;
  border-top: 1px solid var(--rv-line-soft);
  background: #fbfdff;
  color: #6b8296;
  font-size: 10.5px;
}

.rv-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rv-legend-item .rv-dot { margin: 0; }
.rv-legend-note { margin-left: auto; color: #8a9dae; }

/* ========================================================================== */
/* 2. 订单详情抽屉                                                              */
/* ========================================================================== */
.rv-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  background: #0f23301f;
  backdrop-filter: blur(1px);
}

.rv-drawer {
  display: flex;
  flex-direction: column;
  width: 388px;
  max-width: 94vw;
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 40px #1a3a5526;
  animation: rv-slide .18s ease-out;
}

@keyframes rv-slide {
  from { transform: translateX(24px); opacity: .65; }
  to { transform: translateX(0); opacity: 1; }
}

.rv-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rv-line-soft);
}

.rv-drawer-title { margin: 0; color: #24425a; font-size: 15px; font-weight: 800; }
.rv-drawer-sub { margin: 4px 0 0; color: #8199ab; font-size: 11px; line-height: 1.5; }
.rv-drawer-body { flex: 1 1 auto; padding: 14px 18px; overflow: auto; }
.rv-drawer-body .rv-hint { margin: 12px 0 0; }
.rv-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rv-line-soft);
  background: #fbfdff;
}

.rv-drawer-foot .btn.small { min-height: 32px; }

.rv-kv { display: flex; flex-direction: column; margin: 0; }
.rv-kv-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rv-line-soft);
  font-size: 12px;
}

.rv-kv-row:last-child { border-bottom: 0; }
.rv-kv-row dt { color: #8199ab; font-weight: 600; }
.rv-kv-row dd { margin: 0; color: #24425a; line-height: 1.6; word-break: break-word; }

.rv-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--rv-neutral-bg);
  color: var(--rv-neutral);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.rv-pill.is-booked { background: var(--rv-blue-bg); color: #1f5f91; }
.rv-pill.is-inhouse { background: var(--rv-teal-bg); color: #0b6b5c; }
.rv-pill.is-blocked { background: var(--rv-purple-bg); color: #6b5d9a; }
.rv-pill.is-checkout { background: var(--rv-neutral-bg); color: var(--rv-neutral); }
.rv-pill.is-vacant { background: #f0f5f0; color: #5f7c6c; }

.rv-pill-sub { margin-left: 5px; color: #93a6b6; font-size: 9px; }

/* ========================================================================== */
/* 3. 房态数据（.rv-rsd-*）                                                     */
/* ========================================================================== */
.rv-rsd-panel {
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 5px 20px #37648a10;
  overflow: hidden;
}

.rv-rsd-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rv-line-soft);
}

.rv-rsd-title { margin: 0; color: #24425a; font-size: 14px; font-weight: 800; }
.rv-rsd-title .rv-muted { font-size: 11px; font-weight: 500; }

.rv-rsd-scroll {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 300px);
  min-height: 160px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.rv-rsd-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

.rv-rsd-col-name { width: 182px; }
.rv-rsd-col-price { width: 90px; }
.rv-rsd-col-rooms { width: 76px; }
.rv-rsd-col-over { width: 70px; }
.rv-rsd-col-sellable { width: 112px; }
.rv-rsd-col-booked { width: 70px; }
.rv-rsd-col-inhouse { width: 70px; }
.rv-rsd-col-clean { width: 78px; }
.rv-rsd-col-inspect { width: 98px; }
.rv-rsd-col-dirty { width: 70px; }
.rv-rsd-col-maintenance { width: 80px; }
.rv-rsd-col-disabled { width: 80px; }
.rv-rsd-col-rate { width: 148px; }

/* —— 表头：四组 + 13 列 —— */
.rv-rsd-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 34px;
  padding: 6px;
  background: #f6f9fc;
  border-right: 1px solid var(--rv-line-soft);
  border-bottom: 1px solid var(--rv-line);
  color: #5b7387;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.rv-rsd-table thead tr.rv-rsd-groups th {
  height: 32px;
  z-index: 2;
  background: #eef4fa;
  color: #3d5b74;
  font-size: 11.5px;
  letter-spacing: .4px;
}

.rv-rsd-table thead tr.rv-rsd-cols th { top: 32px; z-index: 4; }

.rv-rsd-table thead th.rv-rsd-name {
  position: sticky;
  left: 0;
  z-index: 6;
  background: #f0f5fa;
  text-align: left;
  padding-left: 12px;
  color: #31546e;
  font-size: 12px;
}

/* —— 行 / 单元格 —— */
.rv-rsd-table tbody th,
.rv-rsd-table tbody td,
.rv-rsd-table tfoot th,
.rv-rsd-table tfoot td {
  height: 42px;
  padding: 6px;
  border-right: 1px solid var(--rv-line-soft);
  border-bottom: 1px solid var(--rv-line-soft);
  text-align: center;
  vertical-align: middle;
}

.rv-rsd-table tbody th.rv-rsd-name,
.rv-rsd-table tfoot th.rv-rsd-name {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 6px 12px;
  background: #fbfdff;
  border-right: 1px solid var(--rv-line);
  text-align: left;
  white-space: nowrap;
}

.rv-rsd-row { cursor: pointer; }
.rv-rsd-row:hover td { background: #f7fbff; }
.rv-rsd-row:hover .rv-rsd-name { background: #eef6fc; }
.rv-rsd-row.is-open td { background: #f2f9ff; }
.rv-rsd-row.is-open .rv-rsd-name { background: #e6f2fc; }
.rv-rsd-row:focus-visible { outline: 2px solid var(--rv-blue); outline-offset: -2px; }

.rv-rsd-name-text { color: #24425a; font-weight: 800; font-size: 12px; }
.rv-rsd-code { margin-left: 6px; color: #93a6b6; font-size: 9px; font-weight: 600; }
.rv-rsd-caret { float: right; margin-left: 8px; color: #93a6b6; font-size: 10px; }

.rv-rsd-num {
  color: #31546e;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 数字语义色：在住 / 干净绿、脏房橙、维修红、停用/未检查灰 */
.rv-rsd-cell.is-money .rv-rsd-num { color: #2f6fa8; font-weight: 700; }
.rv-rsd-cell.is-sellable .rv-rsd-num { color: #24425a; font-weight: 800; }
.rv-rsd-cell.is-info .rv-rsd-num { color: var(--rv-blue); font-weight: 800; }
.rv-rsd-cell.is-ok .rv-rsd-num { color: #0b8968; font-weight: 800; }
.rv-rsd-cell.is-warn .rv-rsd-num { color: #c07a1f; font-weight: 800; }
.rv-rsd-cell.is-bad .rv-rsd-num { color: var(--rv-red); font-weight: 800; }
.rv-rsd-cell.is-neutral .rv-rsd-num { color: var(--rv-neutral); }
.rv-rsd-cell.is-muted .rv-rsd-num { color: #a7b6c2; font-weight: 400; }
.rv-rsd-cell.is-plain .rv-rsd-num { color: #31546e; }

/* 出租率进度条 */
.rv-rsd-cell.is-rate { padding: 6px 9px; }
.rv-rate-wrap { display: flex; align-items: center; gap: 7px; }
.rv-rate-num {
  width: 46px;
  flex: 0 0 46px;
  color: #31546e;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rv-rate-num.is-muted { color: #a7b6c2; font-weight: 400; }
.rv-rate-bar {
  flex: 1 1 auto;
  min-width: 40px;
  height: 6px;
  border-radius: 6px;
  background: #eaf1f7;
  overflow: hidden;
}
.rv-rate-bar > i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #8fd0e8, #2f7fc4);
  transition: width .2s ease;
}

/* 总计行 */
.rv-rsd-table tfoot th,
.rv-rsd-table tfoot td {
  background: #eef5fb;
  border-top: 2px solid #d7e5f2;
  border-bottom: 0;
}

.rv-rsd-table tfoot th.rv-rsd-name { background: #e6f0f9; }
.rv-rsd-table tfoot .rv-rsd-num { color: #24425a; font-weight: 800; }
.rv-rsd-table tfoot .rv-rsd-cell.is-ok .rv-rsd-num { color: #0b8968; }
.rv-rsd-table tfoot .rv-rsd-cell.is-warn .rv-rsd-num { color: #c07a1f; }
.rv-rsd-table tfoot .rv-rsd-cell.is-bad .rv-rsd-num { color: var(--rv-red); }
.rv-rsd-table tfoot .rv-rsd-cell.is-neutral .rv-rsd-num { color: var(--rv-neutral); }

/* —— 房型行展开的房间明细 —— */
.rv-rsd-detail {
  background: var(--rv-panel);
  border: 1px solid #cfe3f3;
  border-radius: 14px;
  box-shadow: 0 5px 20px #37648a10;
  overflow: hidden;
}

.rv-rsd-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f9ff;
  border-bottom: 1px solid #e3eef8;
}

.rv-rsd-detail-title { margin: 0; color: #24425a; font-size: 13px; font-weight: 800; }
.rv-rsd-detail-sub { margin: 3px 0 0; color: #7f95a8; font-size: 11px; }
.rv-rsd-detail-body { padding: 12px 16px 16px; }
.rv-rsd-detail-loading { padding: 18px; color: #7f95a8; font-size: 12px; text-align: center; }
.rv-rsd-detail-scroll { overflow: auto; }

.rv-rsd-roomtable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rv-rsd-roomtable th {
  padding: 7px 10px;
  background: #f6f9fc;
  border-bottom: 1px solid var(--rv-line);
  color: #5b7387;
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.rv-rsd-roomtable td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--rv-line-soft);
  color: #31546e;
}
.rv-rsd-roomtable tr:last-child td { border-bottom: 0; }
.rv-rsd-roomtable tbody tr:hover td { background: #fbfdff; }
.rv-rsd-roomno { color: var(--rv-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* —— 房态数据工具栏的小差异 —— */
.rv-rsd-toolbar .rv-filter-date input { width: 148px; }
.rv-rsd-toolbar .rv-toolbar-hint { flex: 1 1 320px; }

/* ========================================================================== */
/* 4. 响应式（模块只在 ≥900px 挂载，这里保证窄窗 / 预览不塌）                     */
/* ========================================================================== */
@media (max-width: 1280px) {
  .rv-toolbar-hint { display: none; }
  .rv-legend-note { margin-left: 0; }
}

@media (max-width: 1100px) {
  .rv-toolbar { padding: 10px 12px; }
  .rv-toolbar-actions { margin-left: 0; }
  .rv-filter-search input { width: 104px; }
  .rv-cal-scroll { max-height: calc(100vh - 340px); }
}

@media (max-width: 899px) {
  .rv-cal-scroll,
  .rv-rsd-scroll { max-height: none; }
  .rv-drawer { width: 100%; max-width: 100%; }
  .rv-rsd-table { min-width: 1120px; }
  .rv-cal-table { --rv-date-w: 80px; }
}

@media (max-width: 640px) {
  .rv-toolbar-main { width: 100%; }
  .rv-toolbar-actions { width: 100%; justify-content: flex-end; }
  .rv-range { display: none; }
  .rv-filter { flex: 1 1 45%; }
  .rv-filter select,
  .rv-filter input { width: 100%; max-width: none; }
  .rv-rsd-toolbar .rv-filter-date { flex: 1 1 100%; }
  .rv-cal-panel-head,
  .rv-rsd-panel-head { padding: 10px 12px; }
  .rv-legend { padding: 8px 12px; }
  .rv-drawer-head,
  .rv-drawer-body,
  .rv-drawer-foot { padding-left: 14px; padding-right: 14px; }
}
