/* 侧边栏导航 hover 效果 */
.hover-nav:hover {
  background-color: rgba(255,255,255,0.1);
}

/* 后台整体布局：固定视口高度，仅右侧内容滚动 */
html, body {
  height: 100%;
}
.admin-shell-body {
  overflow: hidden;
}
.admin-shell {
  height: 100vh;
  overflow: hidden;
}
.admin-sidebar {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
#content-shell {
  min-height: 0;
  min-width: 0;
}
#content-main {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 表格行操作按钮间距 */
.btn-action + .btn-action {
  margin-left: 4px;
}

/* 统计卡片 */
.stat-card .display-6 {
  font-size: 1.8rem;
  font-weight: 700;
}

/* 固定顶部栏高度 */
#main-header {
  height: 56px;
}

/* 分页居右 */
.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* 表格加载遮罩 */
.table-loading-wrap {
  position: relative;
}
.table-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  align-items: center;
  justify-content: center;
}
.table-loading-overlay.show {
  display: flex;
}

/* changes 列折叠 */
.changes-pre {
  max-height: 80px;
  overflow: hidden;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: pre-wrap;
  word-break: break-all;
}
.changes-pre.expanded {
  max-height: none;
}
