body {
  background: #f5f7fb;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cell-clip {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.navbar-brand {
  font-weight: 700;
}

/* 左侧业务模块导航 + 右侧内容区布局 */
.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: block;
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #1e293b;
}

.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-title {
  padding: 14px 10px 6px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.05em;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-link:hover {
  background: #1e293b;
  color: #ffffff;
}

.sidebar-link.active {
  background: #2563eb;
  color: #ffffff;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-topbar-title {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.app-content {
  padding: 20px;
  flex: 1;
}

@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
}
