/* ==========================================================================
   管理后台视觉主题层（加载顺序最后，覆盖 styles.css / management.css 等）
   设计基线：设计系统板「运动预约后台改版」
   - 一个品牌主色 #1B54E0
   - 两套状态语义：预约单状态（淡底标签）/ 场次状态（矩阵色条，取自现有图例五色）
   - 8pt 间距、36px 控件、8/12/16 圆角
   ========================================================================== */

:root {
  /* 品牌 */
  --brand: #1b54e0;
  --brand-hover: #2e6bf0;
  --brand-press: #1443bc;
  --brand-tint: #edf2fe;
  --brand-line: #bfd3fb;

  /* 侧栏 */
  --nav-bg-1: #10243f;
  --nav-bg-2: #0b1b33;
  --nav-text: #b9c9df;
  --nav-text-dim: #7e93ae;
  --nav-divider: rgba(255, 255, 255, 0.08);

  /* 中性 */
  --ink: #0f1b2b;
  --ink-2: #3d4c61;
  --muted: #5a6b80;
  --muted-2: #8b98a8;
  --line: #e6ebf3;
  --line-strong: #dce3ee;
  --surface: #ffffff;
  --bg: #f4f6fa;
  --zebra: #fafbfd;

  /* 场次状态（与图例一致，勿改） */
  --st-available: #19bd72;
  --st-using: #286bec;
  --st-finished: #ffba28;
  --st-noshow: #f45157;
  --st-blocked: #bfc4cd;

  /* 预约单状态 */
  --st-pending: #d97706;
  --st-done: #0e9f6e;
  --st-cancel: #8b98a8;
  --st-danger: #dc2626;

  /* 形状与阴影 */
  --r-ctl: 8px;
  --r-card: 12px;
  --r-layer: 16px;
  --shadow-1: 0 1px 2px rgba(16, 35, 60, 0.05);
  --shadow-2: 0 8px 24px -12px rgba(16, 35, 60, 0.14);
  --shadow-3: 0 18px 44px -16px rgba(16, 35, 60, 0.22);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "Inter", "Noto Sans SC", system-ui, sans-serif;

  /* 保持旧变量可用，避免其它样式表失效 */
  --blue: var(--brand);
  --navy: var(--nav-bg-2);
  --green: var(--st-available);
  --orange: var(--st-finished);
  --red: var(--st-noshow);
  --purple: #6b7a90;
}

/* ---------------------------------- 基础 --------------------------------- */

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
}

::selection {
  background: var(--brand-tint);
  color: var(--brand);
}

button,
input,
select,
textarea {
  font-family: var(--font);
}

/* --------------------------------- 侧边导航 ------------------------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, var(--nav-bg-1), var(--nav-bg-2));
  color: #fff;
  z-index: 2;
}

.brand {
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.brand .brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.brand .brand__mark svg {
  width: 32px;
  height: 32px;
  display: block;
}

.brand span {
  display: block;
}

.brand span small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: var(--nav-text-dim);
}

.sidebar nav {
  display: grid;
  gap: 2px;
  margin: 0;
}

.sidebar nav::before {
  content: "运营管理";
  display: block;
  margin: 0 0 6px 4px;
  font-size: 11px;
  font-weight: 400;
  color: #64789a;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--nav-text);
  font: 500 13px var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.68;
  transition: opacity 0.16s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(27, 84, 224, 0.9);
}

.nav-item.active svg {
  opacity: 1;
}

.nav-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.resource-card {
  position: static;
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  font-size: 12px;
  line-height: 1.6;
}

.resource-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--nav-text-dim);
}

.resource-card p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 1px 0;
  font-size: 12px;
}

.resource-card strong {
  float: none;
  color: #fff;
  font-family: var(--font-num);
  font-weight: 600;
}

.collapse {
  position: static;
  margin-top: 8px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--nav-text-dim);
  font: 500 12px var(--font);
  text-align: left;
  cursor: pointer;
}

.collapse:hover {
  color: #fff;
}

/* --------------------------------- 顶栏 ---------------------------------- */

main {
  margin-left: 236px;
  min-width: 1080px;
}

.topbar {
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.crumb-icon {
  display: none;
}

.crumb__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0 4px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-input,
.search {
  height: 34px;
  padding: 0 11px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink-2);
  display: flex;
  align-items: center;
}

.date-input:focus-within,
.search:focus-within {
  border-color: var(--brand-line);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 84, 224, 0.1);
}

.date-input img {
  display: none;
}

.date-input svg,
.search svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  flex: none;
}

.date-input input,
.search input {
  border: 0;
  outline: 0;
  background: none;
  font: 12px var(--font);
  color: var(--ink);
}

.date-input input {
  width: 108px;
}

.search {
  width: 232px;
}

.search input {
  width: 100%;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted-2);
}

.bell {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bell svg {
  width: 17px;
  height: 17px;
}

.bell b {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--st-noshow);
  color: #fff;
  font: 600 9px/12px var(--font-num);
  text-align: center;
}

.admin-account {
  position: relative;
}

.admin-account__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px 0 4px;
  border: 0;
  border-radius: var(--r-ctl);
  background: none;
  color: var(--ink);
  font: 500 12px var(--font);
  cursor: pointer;
}

.admin-account__trigger:hover {
  background: var(--bg);
}

.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7edf7;
}

.admin-account__trigger span[aria-hidden] {
  color: var(--muted-2);
  font-size: 11px;
}

.admin-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-3);
  z-index: 30;
}

.admin-account__menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  font: 400 12.5px var(--font);
  text-align: left;
  cursor: pointer;
}

.admin-account__menu button:hover {
  background: var(--bg);
  color: var(--ink);
}

/* --------------------------------- 内容区 -------------------------------- */

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: flow-root;
}

.page > h1,
.page h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 12px;
}

/* 卡片与指标 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.metric img {
  display: none;
}

.metric__icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
}

.metric__icon svg {
  width: 17px;
  height: 17px;
}

.metric__body {
  min-width: 0;
}

.metric span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-2);
}

.metric strong {
  display: block;
  margin-top: 2px;
  font: 600 24px/1.2 var(--font-num);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.metric--venue .metric__icon { background: #eef3ff; color: var(--brand); }
.metric--today .metric__icon { background: #eef3ff; color: var(--brand); }
.metric--available .metric__icon { background: #e9f9f0; color: #0b7c55; }
.metric--using .metric__icon { background: #edf2fe; color: var(--st-using); }
.metric--verify .metric__icon { background: #fef3e2; color: #b45309; }
.metric--noshow .metric__icon { background: #fdecec; color: #c22b2b; }

.person-stats {
  grid-template-columns: repeat(4, 1fr);
}

.person-stats .metric {
  min-height: 0;
}

.person-stats .metric img {
  display: none;
}

/* 面板 */
.panel {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.panel > p,
.panel .page-subtitle {
  margin: -6px 0 14px;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* 布局栅格 */
.dashboard-grid,
.schedule-layout,
.verify-top,
.two-col,
.reservation-layout {
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: start;
}

.right-stack {
  display: grid;
  gap: 16px;
}

.schedule-layout {
  grid-template-columns: minmax(0, 1fr) 324px;
  align-items: start;
}

.person-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  margin: 0;
}

.people-content {
  padding: 0;
  min-width: 0;
}

.drawer {
  padding: 20px;
  background: var(--surface);
  border: 0;
  border-left: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  min-height: 0;
  height: fit-content;
  position: sticky;
  top: 16px;
}

.drawer h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.drawer .actions {
  position: static;
  margin-top: 18px;
}

/* --------------------------------- 表格 ---------------------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.data-table th,
.data-table td {
  padding: 0 12px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table th {
  height: 36px;
  background: #f8fafd;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  color: var(--ink-2);
}

.data-table tbody tr:nth-child(even) {
  background: var(--zebra);
}

.data-table tbody tr:hover {
  background: #f5f8fd;
}

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

.data-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.table-pagination,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
}

/* 场次矩阵：淡底 + 左侧状态色条（与图例五色一致） */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  height: 44px;
  padding: 4px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-table th {
  height: 32px;
  background: #f8fafd;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
}

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

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 96px;
  text-align: left;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.slot {
  display: block;
  padding: 7px 4px;
  border-radius: 6px;
  border-left: 0;
  font-size: 11px;
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--slot-color, var(--line-strong));
}

.slot.AVAILABLE { --slot-color: var(--st-available); background: #e9f9f0; color: #0b7c55; }
.slot.RESERVED { --slot-color: #06b6d4; border-color: #b8e8f1; background: #e6f9fc; color: #0e7f92; }
.slot.CHECKED_IN,
.slot.IN_USE { --slot-color: var(--st-using); background: #dde8fe; color: #1339b0; }
.slot.COMPLETED { --slot-color: var(--st-finished); background: #fff5e0; color: #a06c05; }
.slot.EXPIRED { --slot-color: var(--st-blocked); background: #f2f4f8; color: #6b7a90; }
.slot.CLOSED { --slot-color: var(--st-blocked); background: #eef0f4; color: #6b7a90; }
.slot.NO_SHOW { --slot-color: var(--st-noshow); background: #fdecec; color: #c22b2b; }
.slot.FULL { --slot-color: var(--st-noshow); background: #fdecec; color: #b32a2a; }
.slot.PARTIAL { --slot-color: var(--st-finished); background: #fff8e8; color: #a06c05; }

/* 图例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 14px 2px 2px;
  color: var(--muted);
  font-size: 11px;
}

.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--st-available);
  vertical-align: middle;
}

.legend .blue { background: var(--st-using); }
.legend .navy { background: #06b6d4; }
.legend { flex-wrap: wrap; }
.people-v2__table .table-pagination button { min-width: 30px; height: 30px; border: 1px solid #dce4ef; border-radius: 6px; background: #fff; color: #344861; cursor: pointer; }
.people-v2__table .table-pagination button:disabled { opacity: .45; cursor: default; }
.legend .orange,
.legend .yellow { background: var(--st-finished); }
.legend .red { background: var(--st-noshow); }
.legend .gray { background: var(--st-blocked); }

/* --------------------------------- 表单 ---------------------------------- */

label {
  color: var(--muted);
}

.panel label,
.drawer label,
.settings label {
  display: block;
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.settings label {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
}

input,
select,
textarea {
  height: 34px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: #fff;
  color: var(--ink);
  font: 12px var(--font);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  height: auto;
  min-height: 88px;
  padding: 9px 11px;
  line-height: 1.6;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px rgba(27, 84, 224, 0.1);
}

.settings input,
.settings select,
.settings textarea,
.drawer input,
.drawer select {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 0 11px;
  height: 34px;
  font: 12px var(--font);
}

.settings textarea,
.drawer textarea {
  height: 76px;
  padding: 9px 11px;
}

.status-choices {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px;
}

.status-choices button {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: #fff;
  color: var(--muted);
  font: 500 11.5px var(--font);
  cursor: pointer;
}

.status-choices button[aria-pressed="true"],
.status-choices button.active {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

/* --------------------------------- 按钮 ---------------------------------- */

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.button {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: var(--r-ctl);
  background: var(--brand);
  color: #fff;
  font: 500 12.5px var(--font);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.button:active {
  background: var(--brand-press);
  border-color: var(--brand-press);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink-2);
}

.button.secondary:hover {
  border-color: #c9d3e2;
  background: #fbfcfe;
  color: var(--ink);
}

.button.secondary.danger {
  border-color: #f2c6c6;
  color: var(--st-danger);
}

.button.secondary.danger:hover {
  background: #fdecec;
  border-color: #e9adad;
}

.button.warning {
  border-color: #f4d9a8;
  background: #fffaf0;
  color: #a06c05;
}

.more {
  float: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: 500 11.5px var(--font);
  cursor: pointer;
}

.more:hover {
  color: var(--brand-press);
  text-decoration: underline;
}

.more + .more {
  margin-left: 8px;
}

/* 面板标题行右上角的「更多 ›」 */
.panel > .more {
  float: right;
  margin-left: 8px;
  line-height: 22px;
}

.data-table .more {
  float: none;
}

.pending-row > div:nth-child(3) {
  font-size: 11px;
  color: var(--muted-2);
  text-align: right;
  white-space: nowrap;
}

.pending-row .badge {
  justify-self: end;
}

.text-action {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: 500 11.5px var(--font);
  cursor: pointer;
}

.text-action:hover {
  text-decoration: underline;
}

/* --------------------------------- 标签 ---------------------------------- */

.badge,
.admin-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  font: 500 10.5px var(--font);
  white-space: nowrap;
}

.badge.RESERVED,
.badge.PENDING,
.admin-status--RESERVED { background: #fef3e2; color: #b45309; }

.badge.CHECKED_IN,
.badge.IN_USE,
.admin-status--CHECKED_IN { background: var(--brand-tint); color: var(--brand); }

.badge.COMPLETED,
.badge.AVAILABLE,
.admin-status--COMPLETED { background: #e6f7f0; color: #0b7c55; }

.badge.CANCELLED,
.badge.CLOSED,
.admin-status { background: #f1f3f7; color: #6b7a90; }

.badge.NO_SHOW,
.admin-status--NO_SHOW { background: #fdecec; color: #c22b2b; }

.badge.EXPIRED { background: #f2f4f8; color: #6b7a90; }

/* --------------------------------- 其它 ---------------------------------- */

/* 行内小图标（替换掉原来的 ⌕ ◎ ⓧ ♙ ▣ ＋ 等字符画） */
.ico-inline {
  width: 14px;
  height: 14px;
  flex: none;
  vertical-align: -2px;
  margin-right: 4px;
  color: currentColor;
}

.button .ico-inline,
.more .ico-inline,
.text-action .ico-inline {
  margin-right: 3px;
}

.empty .ico-inline {
  width: 18px;
  height: 18px;
  margin: 0 0 6px;
  color: var(--muted-2);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: var(--r-ctl);
  background: var(--bg);
  width: fit-content;
}

.tab {
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 500 11.5px var(--font);
  cursor: pointer;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-1);
}

.tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.alert-row {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdf2f2;
  color: var(--muted);
  font-size: 12px;
}

.alert-row b {
  display: block;
  margin-bottom: 4px;
  color: #c22b2b;
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick button {
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: 500 12px var(--font);
  cursor: pointer;
}

.quick button:nth-child(1),
.quick button:nth-child(2),
.quick button:nth-child(3) {
  background: #fff;
}

.quick button:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.quick img {
  display: none;
}

.quick svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto 6px;
  color: var(--brand);
}

.pending-list {
  display: grid;
  gap: 8px;
}

.pending-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-ctl);
  background: #f8fafd;
}

.pending-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7edf7;
}

.pending-row b {
  font-size: 12px;
  font-weight: 500;
}

.pending-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: #17233a;
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow-3);
}

.filter-chip,
.reservation-tabs span,
.notice-tabs button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 500 11.5px var(--font);
  cursor: pointer;
}

.filter-chip.active,
.notice-tabs button.active {
  background: var(--brand-tint);
  color: var(--brand);
}

.search-results {
  width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-3);
}

/* ===================== 页面级结构（当前在用的 v2 / v4 布局） ================= */

/* 另一套指标卡渲染器 adminMetric()，与 .metric 同源 */
.admin-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* 指标图标块（两个渲染器共用），抬高优先级避免被旧的 span 规则覆盖 */
.metric > .metric__icon,
.admin-metric > .metric__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0;
  font-weight: 400;
}

.metric > .metric__icon svg,
.admin-metric > .metric__icon svg {
  width: 17px;
  height: 17px;
}

.people-v2__metrics .admin-metric,
.reservations-v2__metrics .admin-metric {
  min-height: 0;
  padding: 14px 16px;
}

/* 指标文案：兼容 .metric__body 与旧的裸 div 结构，并压过 dashboard.css 的高优先级规则 */
.metric > div > span,
.metric > .metric__body > span,
.admin-metric > div > span,
.admin-metric > .metric__body > span,
.dashboard-metrics .metric > div > span,
.dashboard-metrics .metric > .metric__body > span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-2);
}

.metric > div > strong,
.metric > .metric__body > strong,
.admin-metric > div > strong,
.admin-metric > .metric__body > strong,
.dashboard-metrics .metric > div > strong,
.dashboard-metrics .metric > .metric__body > strong {
  display: inline;
  margin-top: 2px;
  font: 600 24px/1.2 var(--font-num);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.metric > div > em,
.admin-metric > div > em,
.dashboard-metrics .metric > div > em {
  margin-left: 4px;
  font: 400 11px var(--font);
  font-style: normal;
  color: var(--muted-2);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-metrics .metric {
  min-height: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}

.admin-metric img {
  display: none;
}

.admin-metric > div > span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-2);
}

.admin-metric > div > strong {
  display: block;
  margin-top: 2px;
  font: 600 24px/1.2 var(--font-num);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.admin-metric > div > em {
  margin-left: 4px;
  font: 400 11px var(--font);
  font-style: normal;
  color: var(--muted-2);
}

.admin-metric--venue .metric__icon,
.admin-metric--today .metric__icon { background: #eef3ff; color: var(--brand); }
.admin-metric--available .metric__icon { background: #e9f9f0; color: #0b7c55; }
.admin-metric--using .metric__icon { background: #edf2fe; color: var(--st-using); }
.admin-metric--verify .metric__icon { background: #fef3e2; color: #b45309; }
.admin-metric--noshow .metric__icon { background: #fdecec; color: #c22b2b; }

/* 场次格子的可点击容器 */
.slot-pick {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.slot-pick:focus-visible {
  outline: 2px solid var(--brand-line);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 场地排期 */
.schedule-v2__grid {
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 16px;
  align-items: start;
}

.schedule-v2__board {
  padding: 18px;
}

.schedule-v2__board h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.schedule-v2__board .legend {
  margin: 0 0 14px;
}

.schedule-v2__board .schedule-table th,
.schedule-v2__board .schedule-table td {
  height: 44px;
}

.schedule-v2__board .slot {
  padding: 7px 4px;
  font-size: 11px;
  text-align: center;
}

.schedule-v2__form {
  padding: 18px;
}

.schedule-v2__form h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.schedule-v2__form label {
  grid-template-columns: 72px 1fr;
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.schedule-v2__form input,
.schedule-v2__form select,
.schedule-v2__form textarea {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font: 12px var(--font);
}

.schedule-v2__form textarea {
  height: 76px;
  padding: 9px 11px;
}

.schedule-v2__status {
  gap: 8px;
  margin: 0 0 12px;
}

.schedule-v2__status legend {
  width: 72px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.schedule-v2__status button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: #fff;
  color: var(--muted);
  font: 500 11.5px var(--font);
}

.schedule-v2__status button:first-of-type {
  color: var(--st-available);
}

.schedule-v2__status button[aria-pressed="true"],
.schedule-v2__status button.active {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.schedule-v2__note {
  display: grid;
  grid-template-columns: 72px 1fr;
}

.schedule-v2__actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.schedule-v2__actions .button {
  height: 36px;
  padding: 0;
}

.schedule-v2__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.schedule-v2__history {
  margin-top: 0;
  padding: 18px;
  overflow-x: auto;
}

.schedule-v2__history h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}


/* 顶部项目切换：与设计稿一致的分段控件（替换下划线 tab） */
.admin-tabs {
  display: inline-flex;
  gap: 2px;
  height: auto;
  margin: 0 0 12px;
  padding: 3px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--bg);
}

.admin-tabs button.active::after {
  display: none;
}

.admin-tabs button {
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 500 11px var(--font);
  cursor: pointer;
}

.admin-tabs button.active {
  border: 0;
  border-bottom: 0;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-1);
}

/* 排期板：8 个时段在小屏也尽量完整可见，超出才横向滚动 */
.schedule-v2__board .schedule-table {
  min-width: 0;
}

.schedule-v2__board .schedule-table th:first-child,
.schedule-v2__board .schedule-table td:first-child {
  width: 78px;
}

.schedule-v2__form label {
  display: block;
}

/* 首页看板专属覆盖 */
.dashboard-page {
  min-height: 0;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 16px;
  align-items: start;
}

.dashboard-left {
  gap: 16px;
}

.board-panel {
  padding: 18px;
}

.board-panel h2,
.dashboard-right h2,
.booking-summary h2 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink);
}

.board-panel .legend {
  gap: 18px;
  margin: 0 0 14px;
  font-size: 11px;
}

.sport-heading {
  margin: 14px 0 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--muted);
}

.booking-summary {
  padding: 18px;
}

.summary-rings {
  gap: 8px;
}

.summary-ring {
  gap: 6px;
  color: var(--muted-2);
  font-size: 11px;
}

.summary-ring b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 5px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  color: var(--ink);
  font: 600 16px/1 var(--font-num);
}

.summary-ring b small {
  margin-left: 1px;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted-2);
}

.summary-ring span {
  white-space: nowrap;
}

.summary-ring--verify b { border-top-color: var(--st-pending); border-right-color: #fdf0dc; }
.summary-ring--using b { border-top-color: var(--st-using); border-right-color: #e3ebfd; }
.summary-ring--available b { border-top-color: var(--st-available); border-right-color: #e2f6ec; }
.summary-ring--noshow b { border-top-color: var(--st-noshow); border-right-color: #fde3e3; }

.pending-panel,
.violation-panel,
.quick-panel {
  padding: 18px;
}

.pending-panel .pending-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  min-height: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
}

.pending-panel .pending-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.pending-panel .pending-row b {
  font-size: 12px;
  font-weight: 500;
}

.pending-panel .pending-row small {
  font-size: 10.5px;
  white-space: nowrap;
}

.pending-panel .badge {
  padding: 0 9px;
  font-size: 10.5px;
}

/* 看板排期表：保证 6/8 个时段完整可见 */
.board-panel {
  overflow-x: auto;
}

.board-panel .dashboard-schedule {
  min-width: 0;
}

.dashboard-schedule th,
.dashboard-schedule td {
  height: 44px;
  padding: 4px;
  border-color: var(--line);
}

.dashboard-schedule th:first-child,
.dashboard-schedule td:first-child {
  width: 84px;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
}

.dashboard-schedule th:first-child {
  background: #f8fafd;
}

.dashboard-schedule .slot {
  padding: 7px 3px;
  font-size: 11px;
  line-height: 15px;
  white-space: normal;
  border-radius: 6px;
}

/* 兜底：任何残留位图图标都不显示 */
.nav-item img {
  display: none;
}

/* 筛选卡：标签与控件不换行、不压缩 */
.reservations-v2__filters > div {
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
}

.reservations-v2__filters b {
  flex: none;
  white-space: nowrap;
  font-weight: 400;
}

.reservations-v2__filters .filter-chip {
  flex: none;
  white-space: nowrap;
}

.reservations-v2__filters input[type="date"] {
  flex: none;
  width: 148px;
}

.reservations-v2__filters select {
  flex: none;
  width: 170px;
}

.reservations-v2__filters > div > span {
  color: var(--muted-2);
  font-size: 11px;
}

.reservations-v2__filters .search {
  flex: none;
  margin-left: auto;
}

.reservations-v2__filters .button {
  flex: none;
}

/* 表格与右侧详情：可横向滚动，不被挤压 */
.reservations-v2__layout > section,
.reservations-v2__layout > aside,
.people-v2__layout > main,
.people-v2__layout > aside {
  min-width: 0;
}

.reservations-v2__table,
.people-v2__table {
  overflow-x: auto;
}

.reservation-detail {
  min-height: 0;
}

/* 分页条 */
.table-pagination,
.pagination {
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 8px;
}

.table-pagination select {
  flex: none;
  width: 104px;
  height: 30px;
}

.table-pagination b {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font: 500 11.5px var(--font-num);
}

.table-pagination span {
  color: var(--muted-2);
  font-size: 11px;
}

/* 详情面板里的占位头像收敛尺寸 */
.reservation-detail img,
.reservation-detail .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7edf7;
}


/* 预约核验 */
.verify-v2__metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.verify-v2__main {
  padding: 20px;
}

.verify-v2__main > h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.verify-v2__scanner {
  padding: 20px 24px 20px 8px;
}

.verify-v2__scanner input {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font: 12px var(--font);
}

.verify-v2__scanner .button {
  height: 36px;
  padding: 0 14px;
}

.verify-v2__detail {
  padding: 14px 0 10px 24px;
}

.verify-v2__detail h2 {
  font-size: 15px;
}

.verify-v2__detail dt {
  color: var(--muted-2);
  font-size: 11.5px;
}

.verify-v2__detail dd {
  font-size: 12.5px;
  font-weight: 500;
}

.verify-v2__actions {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.verify-v2__actions .button {
  height: 36px;
  padding: 0 8px;
}

.verify-v2__lists {
  gap: 16px;
  margin-top: 16px;
}

/* 预约管理 */
.reservations-v2__metrics {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.reservations-v2__filters {
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.reservations-v2__filters > div {
  gap: 8px;
}

.reservations-v2__filters b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.reservations-v2__filters input,
.reservations-v2__filters select {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 0 11px;
  font: 12px var(--font);
}

.reservations-v2__filters .search {
  width: 280px;
  margin-left: 8px;
  border: 1px solid transparent;
  background: var(--bg);
}

.reservations-v2__layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.reservations-v2__table {
  padding: 0;
}

.reservations-v2__table .reservation-tabs {
  height: 48px;
  gap: 24px;
  padding: 0 18px;
}

.reservations-v2__table .reservation-tabs button {
  height: 48px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 500 11.5px var(--font);
}

.reservations-v2__table .reservation-tabs button.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
  font-weight: 500;
}

/* 人员管理 */
.people-v2__layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.people-v2__metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.people-v2__table {
  padding: 0;
}

.people-v2__tools {
  gap: 10px;
  margin-bottom: 0;
  padding: 14px 18px;
}

.people-v2__tools .button {
  height: 32px;
  padding: 0 14px;
}

.people-v2__tools select {
  width: 160px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font-size: 12px;
}

.people-v2__tools .search {
  width: 260px;
  margin-left: auto;
}

.people-v2__drawer {
  padding: 20px;
}

.people-v2__drawer h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.people-v2__drawer label {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.people-v2__drawer input,
.people-v2__drawer select {
  height: 34px;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 0 11px;
  font: 12px var(--font);
}

/* 公告 / 设置（v1 结构） */
.two-col {
  gap: 16px;
  margin-top: 16px;
}

.notices-v2__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.notices-v2__editor,
.notices-v2__list {
  padding: 20px;
}

.notices-v2__editor label {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.notices-v2__editor input:not([type="checkbox"]),
.notices-v2__editor textarea {
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font: 12px var(--font);
}

.notices-v2__editor textarea {
  height: 170px;
  padding: 9px 11px;
}

.settings-v2 {
  max-width: 960px;
  margin: 0;
}

.settings-v2__card {
  padding: 24px;
}

.settings-v2__card > label {
  grid-template-columns: 170px 1fr;
  gap: 16px;
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.settings-v2__card input {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font: 12px var(--font);
}


/* ------------------------------- 登录页 ---------------------------------- */

.admin-login {
  background: linear-gradient(135deg, #eef3ff 0%, #f7f9fc 55%, #eaf1ff 100%);
}

.admin-login__card {
  border: 1px solid var(--line);
  border-radius: var(--r-layer);
  box-shadow: var(--shadow-3);
}

.admin-login__card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.admin-login__card p {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 12.5px;
}

.admin-login__card label {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.admin-login__card input {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 0 11px;
  font: 13px var(--font);
}

.admin-login__card input:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(27, 84, 224, 0.12);
}

.admin-login__card .button {
  height: 40px;
  margin-top: 20px;
  border-radius: var(--r-ctl);
}

/* ------------------------------- 响应式 ---------------------------------- */

@media (max-width: 1280px) {
  .dashboard-grid,
  .schedule-v2__grid,
  .schedule-layout,
  .verify-v2__content,
  .verify-top,
  .reservations-v2__layout,
  .reservation-layout,
  .people-v2__layout,
  .notices-v2__grid,
  .two-col,
  .person-layout {
    grid-template-columns: 1fr;
  }

  .verify-v2__lists {
    grid-template-columns: 1fr;
  }

  .verify-v2__scanner {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drawer,
  .people-v2__drawer {
    position: static;
  }

  .cards,
  .verify-v2__metrics,
  .people-v2__metrics,
  .reservations-v2__metrics {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 64px;
    padding: 16px 8px;
  }

  .brand span,
  .nav-item span,
  .collapse,
  .resource-card,
  .sidebar nav::before {
    display: none;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  main {
    margin-left: 64px;
    min-width: 0;
  }

  .topbar {
    height: 56px;
    padding: 0 16px;
  }

  .search {
    display: none;
  }

  .page {
    padding: 16px;
  }
}

/* 10 列宽表 + 侧栏详情在 1600px 以下改为上下排布，保证表格不被裁切 */
@media (max-width: 1599px) {
  .reservations-v2__layout,
  .people-v2__layout {
    grid-template-columns: 1fr;
  }

  .reservations-v2__layout > aside,
  .people-v2__layout > aside {
    position: static;
  }
}

/* 预约详情：上下排布时收窄内容宽度，动作按钮不再拉满 */
.reservation-detail {
  max-width: 620px;
}

.reservation-detail dl {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 15px;
  margin: 16px 0 20px;
}

.reservation-detail dt {
  color: var(--muted-2);
  font-size: 11.5px;
}

.reservation-detail dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
}

.reservation-detail .reservation-actions,
.reservation-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.reservation-detail .reservation-actions .button,
.reservation-actions .button {
  width: auto;
  height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
}

.reservation-detail > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* 分页箭头 */
.table-pagination span,
.table-pagination b {
  font-size: 12px;
  color: var(--muted-2);
}

.table-pagination b {
  color: #fff;
}

/* 人员状态标签 */
.admin-status--NORMAL {
  background: #e6f7f0;
  color: #0b7c55;
}

.admin-status--FROZEN {
  background: #fdecec;
  color: #c22b2b;
}

.admin-status--DISABLED {
  background: #f1f3f7;
  color: #6b7a90;
}

/* 操作列多个文字按钮之间留出间隔 */
.data-table .text-action + .text-action,
.data-table .more + .more,
.data-table .text-action + .more,
.data-table .more + .text-action {
  margin-left: 10px;
}

/* 人员抽屉：上下排布时收窄，按钮不拉满 */
.people-v2__drawer {
  max-width: 620px;
}

.people-v2__drawer .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.people-v2__drawer .actions .button {
  width: auto;
  min-width: 96px;
}

.pagination span,
.pagination b {
  font-size: 12px;
}

/* 复选框 / 单选框不要继承文本输入框的宽高 */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--brand);
  vertical-align: -2px;
}

.notices-v2__editor .notices-v2__pin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  white-space: nowrap;
}

/* 核验页的指标按钮（.verify-card 自带 grid 区域，需显式覆盖） */
.verify-card {
  grid-template-areas:
    "icon label blank"
    "icon value unit";
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-align: left;
  cursor: pointer;
}

.verify-card > .metric__icon {
  grid-area: icon;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  align-self: center;
}

.verify-card > span:not(.metric__icon) {
  grid-area: label;
  align-self: end;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-2);
}

.verify-card > strong {
  grid-area: value;
  align-self: start;
  font: 600 22px/1.25 var(--font-num);
  color: var(--ink);
}

.verify-card > em {
  grid-area: unit;
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  margin-left: 2px;
  font: 400 11px var(--font);
  font-style: normal;
  color: var(--muted-2);
}

/* 设置表单：输入框不随卡片无限拉宽 */
.settings input,
.settings select,
.settings textarea,
.settings-v2__card input {
  max-width: 420px;
}

.settings .actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.settings h2 {
  margin-bottom: 8px;
}

/* ------------------------------ 首字头像 -------------------------------- */
.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 500 13px/1 var(--font);
  letter-spacing: 0;
  user-select: none;
}

.avatar.t1 { background: #eef3ff; color: #1b54e0; }
.avatar.t2 { background: #e9f9f0; color: #0b7c55; }
.avatar.t3 { background: #fef3e2; color: #b45309; }
.avatar.t4 { background: #eef1f6; color: #4a5c78; }
.avatar.t5 { background: #e8f1f9; color: #2b5b7a; }

.pending-row .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.reservation-v2__user .avatar,
.reservation-detail .avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.account-page__avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--brand);
  font: 600 20px/1 var(--font);
}

/* 顶栏头像（span 版本） */
.admin-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7edf7;
  color: #4a648a;
  font: 500 12px/1 var(--font);
  object-fit: cover;
}

/* --------------------- 指标卡图标配色（新增语义类型） -------------------- */
.metric--pending .metric__icon,
.admin-metric--pending .metric__icon { background: #fef3e2; color: #b45309; }

.metric--completed .metric__icon,
.admin-metric--completed .metric__icon { background: #e6f7f0; color: #0b7c55; }

.metric--cancel .metric__icon,
.admin-metric--cancel .metric__icon { background: #f1f3f7; color: #6b7a90; }

.metric--disabled .metric__icon,
.admin-metric--disabled .metric__icon { background: #f1f3f7; color: #6b7a90; }

.metric--frozen .metric__icon,
.admin-metric--frozen .metric__icon { background: #fdecec; color: #c22b2b; }

.metric--people .metric__icon,
.admin-metric--people .metric__icon { background: #eef3ff; color: var(--brand); }

.metric--noshow .metric__icon,
.admin-metric--noshow .metric__icon { background: #fdecec; color: #c22b2b; }

/* 核验卡按筛选项着色（按钮上没有 metric--x 类，用 data 属性匹配） */
.verify-card[data-verify-filter="RESERVED"] .metric__icon {
  background: #fef3e2;
  color: #b45309;
}

.verify-card[data-verify-filter="CHECKED_IN"] .metric__icon {
  background: #e6f7f0;
  color: #0b7c55;
}

.verify-card[data-verify-filter="NO_SHOW"] .metric__icon {
  background: #fdecec;
  color: #c22b2b;
}

.verify-card[data-verify-filter=""] .metric__icon {
  background: #eef3ff;
  color: var(--brand);
}

/* Generated transparent brand mark */
.brand .brand__mark img { width: 36px; height: 36px; object-fit: contain; mix-blend-mode: normal; }
.brand .brand__mark { background: #fff; }
.brand .brand__mark img { width: 36px; height: 36px; object-fit: contain; mix-blend-mode: normal; }
.brand .brand__mark { background: #fff; }

/* Shared icon contrast and flexible management controls */
.nav-item svg { color: #b8c9e1; opacity: 1; }
.nav-item:hover svg, .nav-item.active svg { color: #fff; }
.people-v2__tools { flex-wrap: wrap; }
.people-v2__tools .button, .people-v2__tools .import-file-label { flex: 0 0 auto; white-space: nowrap; }
.people-v2__tools .search { flex: 1 1 200px; min-width: 180px; }

/* Settings and personnel forms share the same control sizing. */
.settings-v2__card > label {
  display: grid;
  grid-template-columns: 190px minmax(0, 420px);
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink);
}
.settings-v2__card > label input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
}
.people-v2__layout { grid-template-columns: minmax(0, 1fr); }
.people-v2__tools { align-items: flex-start; }
.people-v2__tools > .button,
.people-v2__tools > select,
.people-v2__tools > .search {
  height: 40px;
  margin-top: 0;
  margin-bottom: 0;
}
.people-v2__tools > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.people-v2__tools .search {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
}
.people-v2__tools .search input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}
.person-dialog {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 0;
  border-radius: 14px;
}
.person-dialog::backdrop { background: rgba(16, 35, 60, .48); }
.person-dialog label { display: block; }
.person-dialog input, .person-dialog select { width: 100%; }
@media (max-width: 600px) {
  .settings-v2__card > label { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.scan-frame svg { width: 52px; height: 52px; color: #8ca4c3; }
.verify-v2__lists .panel, .people-v2__table { min-width: 0; overflow-x: auto; }
.header-tools .header-icon { width: 20px; height: 20px; flex: none; object-fit: contain; }
.brand .brand__mark img { filter: none; } .header-tools .date-input img.header-icon { display: block; }
.brand .brand__mark { overflow: hidden; }
.brand .brand__mark img { transform: scale(1.6); }

/* Reservation status: each ring represents its share of the selected day's total. */
.booking-summary { padding: 22px 24px; }
.booking-summary h2 { margin: 0 0 20px; }
.summary-rings { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.summary-ring { --ring-color: #2464e8; gap: 7px; text-align: center; color: #42536e; font-size: 13px; }
.summary-ring--verify { --ring-color: #d98212; }
.summary-ring--using { --ring-color: #2775e9; }
.summary-ring--available { --ring-color: #14a871; }
.summary-ring--cancelled { --ring-color: #8794a8; }
.summary-ring--noshow { --ring-color: #e4545d; }
.summary-ring__chart {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--percent), #e9eef5 0);
}
.summary-ring .summary-ring__chart b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #192b46;
  font: 600 22px/64px var(--font-num);
  font-variant-numeric: tabular-nums;
}
.summary-ring .summary-ring__chart b small { margin: 0; color: #687a91; font-size: 11px; }
.summary-ring > span { color: #354760; font-weight: 600; }
.summary-ring__share { color: #6c7d93; font-size: 12px; }
@media (max-width: 1100px) { .summary-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; } }
.metric__icon img.generated-metric-icon { display: block; width: 28px; height: 28px; object-fit: contain; mix-blend-mode: normal; } .metric__icon img.generated-metric-icon--cancel { transform: rotate(45deg); }

/* Larger generated artwork on the card surface */
.metric > .metric__icon,
.admin-metric > .metric__icon,
.verify-card > .metric__icon,
.verify-card[data-verify-filter] > .metric__icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 0;
}
.metric__icon img.generated-metric-icon { width: 36px; height: 36px; }
.verify-card { grid-template-columns: 36px minmax(0, 1fr) auto; }
/* Normalize artwork bounds: generated PNGs contain different amounts of transparent padding. */
.metric__icon img.generated-metric-icon--venue { transform: scale(1.30); }
.metric__icon img.generated-metric-icon--calendar { transform: scale(1.29); }
.metric__icon img.generated-metric-icon--available { transform: scale(1.38); }
.metric__icon img.generated-metric-icon--completed { transform: scale(1.45); }
.metric__icon img.generated-metric-icon--cancel { transform: rotate(45deg) scale(1.38); }
.metric__icon img.generated-metric-icon--people { transform: scale(1.50); }
.metric__icon img.generated-metric-icon--disabled { transform: scale(1.48); }
.metric__icon img.generated-metric-icon--warning { transform: scale(1.35); }
/* Keep the reservation search input aligned inside its search control. */
.reservations-v2__filters .search { display: flex; align-items: center; height: 34px; padding: 0 10px; }
.reservations-v2__filters .search input { display: block; flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0 0 0 8px; padding: 0; border: 0; background: transparent; outline: 0; }
/* Keep all eight weekend sessions readable; scroll the board on narrow screens. */
.schedule-v2__board, .board-panel { min-width: 0; overflow-x: auto; }
.schedule-v2__board .schedule-table, .board-panel .dashboard-schedule { min-width: 800px; }

/* 批量暂停面板 */
.schedule-v2__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.batch-panel { padding: 18px; }
.batch-panel h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.batch-hint { margin: 0 0 14px; font-size: 12px; color: #748198; line-height: 1.5; }
.batch-panel label { display: block; margin-bottom: 10px; font-size: 12px; color: #475069; }
.batch-panel input[type=date],
.batch-panel select,
.batch-panel textarea { display: block; width: 100%; margin-top: 5px; padding: 7px 9px; border: 1px solid #d9dee8; border-radius: 6px; font-size: 12px; color: #1f2733; background: #fff; box-sizing: border-box; }
.batch-panel textarea { min-height: 52px; resize: vertical; }
.batch-scope-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; font-size: 12px; color: #475069; }
.batch-link { margin-left: auto; padding: 0; border: 0; background: transparent; color: #1768f4; font-size: 12px; cursor: pointer; }
.batch-link + .batch-link { margin-left: 0; }
.batch-venue-list { max-height: 132px; overflow-y: auto; margin-bottom: 12px; padding: 8px; border: 1px solid #e5e9f0; border-radius: 6px; background: #fafbfc; }
.batch-venue { display: inline-flex; align-items: center; gap: 5px; width: calc(50% - 6px); margin: 0 0 6px; font-size: 12px; color: #33405a; }
.batch-venue input { margin: 0; }
.batch-cancel-row { display: flex; align-items: center; gap: 7px; }
.batch-cancel-row input { margin: 0; }
.batch-preview { margin: 6px 0 12px; padding: 10px; border-radius: 6px; background: #f2f6fd; }
.batch-preview-empty { font-size: 12px; color: #8a97ad; }
.batch-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.batch-preview-grid div { display: flex; flex-direction: column; gap: 2px; }
.batch-preview-grid b { font-size: 18px; font-weight: 600; color: #1768f4; }
.batch-preview-grid span { font-size: 11px; color: #748198; }
.batch-preview-note { margin-top: 8px; font-size: 11px; color: #5c6a82; line-height: 1.5; }
.batch-preview-note b { color: #d0392b; }
.batch-apply { width: 100%; }

/* 批量/单次模式切换 tab */
.slot-mode-tabs { align-self: flex-start; flex-shrink: 0; margin-bottom: 0; }
.schedule-v2__side[data-slot-active="batch"] [data-slot-panel="single"],
.schedule-v2__side[data-slot-active="single"] [data-slot-panel="batch"] { display: none; }
