/* ============================================================
   志成CRM — Shadcn Design Theme CSS
   基于 design-spec.md 设计规范文档
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS 变量定义 (Design Tokens)
   ---------------------------------------------------------- */
:root {
  /* 品牌色 - Teal 系 */
  --brand-teal: #104850;
  --brand-teal-deep: #0c3940;
  --brand-teal-ink: #082d33;
  --brand-teal-soft: #e7f1f1;
  --teal-50: #f1f8f7;
  --teal-100: #e7f1f1;
  --teal-600: #1c6b73;
  --teal-700: #082d33;
  --teal-800: #104850;
  --teal-900: #0c3940;

  /* 品牌色 - Gold 系 */
  --brand-gold: #b09050;
  --brand-gold-deep: #8f6f32;
  --brand-gold-bright: #d4b46a;
  --brand-gold-soft: #f5eddc;
  --gold-50: #fbf7ee;
  --gold-100: #f5eddc;
  --gold-500: #d4b46a;
  --gold-600: #b09050;
  --gold-700: #8f6f32;

  /* 暖灰系 */
  --warm-50: #fcfaf6;
  --warm-100: #f3eee4;
  --warm-200: #e8dfcf;
  --warm-300: #d8cab3;
  --warm-400: #a79d8e;
  --warm-500: #6d675f;
  --warm-600: #5c5a56;
  --warm-700: #505050;
  --warm-800: #393939;
  --warm-900: #252525;

  /* 功能色 */
  --success: #1c7d70;
  --danger: #c75450;
  --destructive: #c75450;
  --warning: #b9842e;
  --info: #2f6f8e;

  /* 表面色 */
  --surface: #fbfcfb;
  --surface-soft: #f5f8f6;
  --surface-feature: #eef7f1;

  /* 边线色 */
  --hairline: #e1e5e2;
  --hairline-soft: #ecefeb;
  --hairline-strong: #c8d1cb;

  /* Shadcn 映射 */
  --background: #fcfaf6;
  --foreground: #393939;
  --card: rgba(255, 255, 255, 0.96);
  --card-foreground: #393939;
  --popover: #ffffff;
  --popover-foreground: #393939;
  --primary: #104850;
  --primary-foreground: #ffffff;
  --secondary: #fbfcfb;
  --secondary-foreground: #393939;
  --muted: #f5f8f6;
  --muted-foreground: #6d675f;
  --accent: #b09050;
  --accent-foreground: #211a0f;
  --destructive-foreground: #ffffff;
  --border: #e1e5e2;
  --input: #c8d1cb;
  --ring: #104850;

  /* 侧边栏（深色） */
  --sidebar-background: #0f172a;
  --sidebar-foreground: #94a3b8;
  --sidebar-primary: #104850;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1e293b;
  --sidebar-accent-foreground: #e2e8f0;
  --sidebar-border: rgba(148, 163, 184, 0.16);
  --sidebar-ring: #b09050;

  /* 字体 */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* 圆角 */
  --radius: 0.625rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-2xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: rgba(8, 45, 51, 0.05) 0px 1px 2px, rgba(16, 72, 80, 0.04) 0px 8px 24px -18px;
  --shadow-card-hover: rgba(8, 45, 51, 0.10) 0px 12px 28px -18px;
  --shadow-brand: rgba(16, 72, 80, 0.16) 0px 18px 36px -18px;
  --shadow-modal: rgba(16, 72, 80, 0.16) 0px 16px 48px -8px;

  /* 间距 */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;

  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------
   2. 基础重置与全局样式
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-teal-deep);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--muted-foreground); }

/* ----------------------------------------------------------
   3. 布局辅助类
   ---------------------------------------------------------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-5 { padding: var(--spacing-5); }
.p-6 { padding: var(--spacing-6); }

.px-2 { padding-left: var(--spacing-2); padding-right: var(--spacing-2); }
.px-3 { padding-left: var(--spacing-3); padding-right: var(--spacing-3); }
.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-5 { padding-left: var(--spacing-5); padding-right: var(--spacing-5); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }

.py-1 { padding-top: var(--spacing-1); padding-bottom: var(--spacing-1); }
.py-2 { padding-top: var(--spacing-2); padding-bottom: var(--spacing-2); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: var(--spacing-2); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.transition { transition: all var(--transition-base); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ----------------------------------------------------------
   4. 侧边栏布局
   ---------------------------------------------------------- */
.sidebar-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 15rem;
  background: var(--sidebar-background);
  color: var(--sidebar-foreground);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sidebar-border);
  z-index: 30;
  transition: width var(--transition-base), transform var(--transition-base);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 3.75rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 16px 16px 12px;
  height: 63.5px;
  min-height: 63.5px;
  max-height: 63.5px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-logo {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-logo-img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-brand {
  overflow: hidden;
  white-space: nowrap;
}

.sidebar.collapsed .sidebar-brand {
  display: none;
}

.sidebar-brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.6875rem;
  color: var(--sidebar-foreground);
  opacity: 0.65;
}

/* 侧边栏语言切换 */
.sidebar-lang-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-lang-btn {
  flex: 1;
  padding: 0.25rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--sidebar-foreground);
  opacity: 0.7;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-lang-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}
.sidebar-lang-btn.active {
  opacity: 1;
  color: #fff;
  background: var(--primary, #1a7a4c);
  border-color: var(--primary, #1a7a4c);
}

/* 侧边栏导航 */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.sidebar-nav-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-foreground);
  opacity: 0.5;
  padding: 0.75rem 0.75rem 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.125rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  min-height: 2.75rem;
}

.sidebar-nav-item:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.sidebar-nav-item.active {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 72, 80, 0.3);
}

.sidebar-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sidebar-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-nav-label,
.sidebar.collapsed .sidebar-nav-group-label,
.sidebar.collapsed .sidebar-nav-badge {
  display: none;
}

.sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 0.625rem;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 16px 8px 12px;
  height: 63.5px;
}

/* 侧边栏底部用户区 */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0.875rem;
  height: 137.5px;
  min-height: 137.5px;
  max-height: 137.5px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-footer-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0;
}

.sidebar-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.sidebar-user-meta {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar.collapsed .sidebar-user-meta {
  display: none;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--sidebar-foreground);
  opacity: 0.55;
  white-space: nowrap;
}

.sidebar-footer-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 0.625rem 0;
  flex-shrink: 0;
}

.sidebar-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-user-email {
  font-size: 0.6875rem;
  color: var(--sidebar-foreground);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.125rem 0;
  cursor: default;
}

.sidebar-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.25rem 0;
  background: none;
  border: none;
  color: var(--sidebar-foreground);
  opacity: 0.55;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.sidebar-logout-btn:hover {
  opacity: 0.95;
  color: #ef4444;
}

.sidebar.collapsed .sidebar-footer-user {
  justify-content: center;
}

.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-role,
.sidebar.collapsed .sidebar-footer-divider,
.sidebar.collapsed .sidebar-footer-links {
  display: none;
}

/* 主内容区 */
.sidebar-main {
  flex: 1;
  margin-left: 15rem;
  transition: margin-left var(--transition-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-main.expanded-sidebar {
  margin-left: 15rem;
}

.sidebar.collapsed ~ .sidebar-main {
  margin-left: 3.75rem;
}

/* ----------------------------------------------------------
   5. 顶栏 Header
   ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(16, 72, 80, 0.04);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.header-breadcrumb a {
  color: var(--muted-foreground);
}

.header-breadcrumb a:hover {
  color: var(--primary);
}

.header-breadcrumb .separator {
  color: var(--border);
}

.header-breadcrumb .current {
  color: var(--foreground);
  font-weight: 500;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-notification {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--foreground);
  transition: background var(--transition-fast);
}

.header-notification:hover {
  background: var(--teal-50);
}

.header-notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--danger);
}

.header-user-menu {
  position: relative;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.header-user-trigger:hover {
  background: var(--teal-50);
}

.header-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--foreground);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.header-toggle-btn:hover {
  background: var(--muted);
}

/* ----------------------------------------------------------
   6. 登录页 - 双栏布局
   ---------------------------------------------------------- */
.login-page {
  display: flex;
  min-height: 100vh;
}

.login-brand {
  flex: 1.2;
  background: linear-gradient(135deg, var(--brand-teal) 0%, #0c3940 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-brand-logo-img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-xl);
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
}

.login-brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-brand-subtitle {
  font-size: 0.9375rem;
  opacity: 0.75;
  line-height: 1.6;
  max-width: 20rem;
}

/* 品牌区底部快捷入口 */
.login-brand-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}

.login-brand-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.login-brand-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.login-form-panel {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--background);
}

.login-form-container {
  width: 100%;
  max-width: 24rem;
}

.login-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: 0.25rem;
}

.login-form-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: none;
}

.login-error.show {
  display: block;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.login-links a {
  color: var(--muted-foreground);
}

.login-links a:hover {
  color: var(--primary);
}

/* ----------------------------------------------------------
   7. 内容区 (Page Container)
   ---------------------------------------------------------- */
.page-container {
  flex: 1;
  padding: 0.75rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .page-container {
    padding: 1.25rem 1.5rem 2rem;
  }
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--warm-900);
  line-height: 1.2;
}

.page-header p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--warm-500);
}

/* 品牌装饰页头 */
.brand-shell {
  background: linear-gradient(135deg, rgba(252, 250, 246, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.brand-shell::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  background: radial-gradient(circle, rgba(16, 72, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* ----------------------------------------------------------
   8. 按钮
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  outline: none;
  user-select: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(16, 72, 80, 0.25);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* 尺寸 */
.btn {
  height: 2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn-sm {
  height: 2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 2.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-size: 0.9375rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: var(--radius-full);
}

/* 变体 */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: var(--brand-teal-deep);
  box-shadow: 0 4px 16px rgba(16, 72, 80, 0.25);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--muted);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-color: var(--hairline-strong);
}
.btn-outline:hover {
  border-color: var(--brand-gold);
  background: var(--gold-50);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover {
  background: var(--teal-50);
  color: var(--primary);
}

.btn-danger {
  background: var(--destructive);
  color: var(--destructive-foreground);
}
.btn-danger:hover {
  background: #b04440;
  box-shadow: 0 4px 16px rgba(199, 84, 80, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-accent:hover {
  background: var(--brand-gold-bright);
}

/* 加载中状态 */
.btn.loading {
  position: relative;
  color: transparent !important;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ----------------------------------------------------------
   9. 卡片
   ---------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-header {
  padding: 1.25rem 1.5rem 0;
}

.card-header.has-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-900);
  line-height: 1.25;
}

.card-description {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.card-content {
  padding: 1.25rem 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 统计卡片 */
.stat-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--warm-900);
  line-height: 1.1;
}

.stat-card-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-card-change.up {
  color: var(--success);
}

.stat-card-change.down {
  color: var(--danger);
}

/* ----------------------------------------------------------
   10. 徽章 Badge
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  width: fit-content;
}

.badge-default {
  border-color: rgba(16, 72, 80, 0.16);
  background: var(--teal-50);
  color: var(--primary);
}

.badge-secondary {
  border-color: rgba(176, 144, 80, 0.2);
  background: var(--gold-50);
  color: var(--brand-gold-deep);
}

.badge-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.badge-outline {
  border-color: rgba(80, 80, 80, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--warm-700);
}

.badge-success {
  border-color: rgba(28, 125, 112, 0.2);
  background: #eaf5f2;
  color: var(--success);
}

/* ----------------------------------------------------------
   11. 表单控件
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.input,
.textarea,
.select {
  display: flex;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  background: #ffffff;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.input {
  height: 2.75rem;
  padding: 0 1rem;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 72, 80, 0.14);
}

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

.input:disabled,
.textarea:disabled,
.select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.textarea {
  min-height: 4rem;
  padding: 0.75rem 1rem;
  resize: vertical;
  field-sizing: content;
}

.select {
  height: 2.75rem;
  padding: 0 2.25rem 0 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d675f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

/* ----------------------------------------------------------
   12. 数据表格
   ---------------------------------------------------------- */
.table-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.table thead {
  background: var(--surface);
}

.table th {
  height: 2.5rem;
  padding: 0 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-700);
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table td {
  padding: 0.625rem 1rem;
  color: var(--foreground);
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline-soft);
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--surface-feature);
}

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

.table-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ----------------------------------------------------------
   13. 模态对话框 Dialog
   ---------------------------------------------------------- */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}

.dialog {
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: dialogIn 0.2s ease-out;
}

.dialog-header {
  padding: 1.5rem 1.5rem 0;
}

.dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--warm-900);
}

.dialog-description {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.dialog-body {
  padding: 1rem 1.5rem;
}

.dialog-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  transition: background var(--transition-fast);
}

.dialog-close:hover {
  background: var(--muted);
}

/* ----------------------------------------------------------
   14. 下拉菜单 Dropdown
   ---------------------------------------------------------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 50;
  min-width: 10rem;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.25rem;
  animation: dropdownIn 0.15s ease-out;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--foreground);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--teal-50);
  color: var(--primary);
}

.dropdown-item.danger {
  color: var(--destructive);
}

.dropdown-item.danger:hover {
  background: #fef2f2;
}

.dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: 0.25rem -0.25rem;
}

/* ----------------------------------------------------------
   15. 标签切换 Tabs
   ---------------------------------------------------------- */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  background: #ffffff;
  padding: 0.25rem;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-500);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  white-space: nowrap;
}

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

.tab-item.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------
   16. Toast 通知
   ---------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--warm-900);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.3s ease-out;
  max-width: 24rem;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--destructive);
}

.toast.warning {
  background: var(--warning);
}

.toast.info {
  background: var(--info);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(1rem);
  }
}

/* ----------------------------------------------------------
   17. Spinner 加载旋转
   ---------------------------------------------------------- */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 2.5px;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
}

/* 全屏加载 */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 250, 246, 0.8);
  backdrop-filter: blur(4px);
}

.loading-overlay .spinner {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

/* ----------------------------------------------------------
   18. 图表柱状图 (CSS)
   ---------------------------------------------------------- */
.chart-bar-container {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 10rem;
  padding: 0 0.25rem;
}

.chart-bar {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(16, 72, 80, 0.6) 100%);
  transition: height var(--transition-base);
  min-height: 4px;
  position: relative;
  margin-bottom: 1.5rem;
}

.chart-bar:nth-child(2n) {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(176, 144, 80, 0.6) 100%);
}

.chart-bar-label {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   19. 动画关键帧
   ---------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   20. 响应式
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 18rem !important;
    z-index: 999;
    transition: transform 0.3s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-main {
    margin-left: 0 !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-sidebar-overlay.show {
    display: block;
    opacity: 1;
  }

  .login-page {
    flex-direction: column;
  }

  .login-brand {
    padding: 2rem;
    min-height: 12rem;
  }

  .login-brand-title {
    font-size: 1.5rem;
  }

  .login-form-panel {
    padding: 2rem 1.25rem;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0 0.75rem;
  }

  .page-container {
    padding: 0.75rem 1rem 1.5rem;
  }

  .table-container {
    border-radius: var(--radius-md);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 汉堡菜单按钮（移动端） */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: var(--sidebar-background);
  color: #e2e8f0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, transform 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--sidebar-accent);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ----------------------------------------------------------
   20. App Layout (新版页面布局)
   ---------------------------------------------------------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: 15rem;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--background);
  transition: margin-left var(--transition-base);
}

.sidebar.collapsed ~ .main-content {
  margin-left: 3.75rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.8125rem;
  outline: none;
  min-width: 220px;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 72, 80, 0.1);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-grid-2 .full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 72, 80, 0.1);
}

.required {
  color: var(--danger);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  animation: dialogIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* Data Table */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table thead {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.data-table tr:hover td {
  background: var(--teal-50);
}

.data-table .empty {
  text-align: center;
  color: var(--muted-foreground);
  padding: 2rem;
}

.action-btns {
  display: flex;
  gap: 0.375rem;
  white-space: nowrap;
}

/* Card Header Count */
.card-header-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 400;
}

/* Folder Tabs */
.folder-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.folder-tab {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.folder-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.folder-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.folder-delete {
  font-size: 0.75rem;
  opacity: 0.5;
  cursor: pointer;
  font-weight: bold;
}

.folder-delete:hover {
  opacity: 1;
}

/* File Icons */
.file-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  border-radius: 3px;
}

.fi-img { background: #dbeafe; }
.fi-vid { background: #fce7f3; }
.fi-aud { background: #fef3c7; }
.fi-pdf  { background: #fee2e2; }
.fi-txt  { background: #f3f4f6; }
.fi-code { background: #e0f2fe; }
.fi-file { background: #f3f4f6; }

/* Role Badges */
.badge-super_admin { background: #7c3aed; color: #fff; }
.badge-admin { background: var(--primary); color: #fff; }
.badge-manager { background: #0891b2; color: #fff; }
.badge-user { background: var(--muted); color: var(--foreground); }

/* Sidebar Nav Item active state (for sidebar.js) */
.sidebar-nav-item.active {
  background: rgba(16, 72, 80, 0.2);
  color: #fff;
}


@keyframes dialogIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   文件管理页面样式
   ============================================================ */

/* Tab 切换 */
.fm-tabs {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  box-shadow: var(--shadow-xs);
}

.fm-tab {
  flex: 1;
  text-align: center;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.fm-tab.active {
  background: var(--teal-50);
  color: var(--primary);
  font-weight: 600;
}

.fm-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.625rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 标题栏 */
.fm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.fm-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  display: inline;
}

.fm-subtitle {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

.fm-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 筛选标签 */
.fm-filter-chips {
  display: flex;
  gap: 0.375rem;
}

.fm-chip {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  color: var(--muted-foreground);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fm-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.fm-chip:hover:not(.active) {
  background: var(--teal-50);
  color: var(--primary);
}

/* 搜索框 */
.fm-search-wrap {
  margin-bottom: 1rem;
}

.fm-search-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  background: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.fm-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 72, 80, 0.08);
}

/* 文件夹导航 */
.fm-folder-bar {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.fm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.fm-breadcrumb-item {
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fm-breadcrumb-item.active {
  background: var(--primary);
  color: #fff;
}

.fm-breadcrumb-item:hover:not(.active) {
  background: var(--teal-50);
  color: var(--primary);
}

.fm-breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
}

/* 子文件夹 */
.fm-subfolders {
  margin-bottom: 0.75rem;
}

.fm-subfolder-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-right: 0.5rem;
}

.fm-subfolder-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--primary);
  cursor: pointer;
  margin-right: 0.375rem;
  margin-bottom: 0.25rem;
  border: 1px solid var(--hairline-soft);
  transition: all var(--transition-fast);
}

.fm-subfolder-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.fm-subfolder-empty {
  font-size: 0.75rem;
  color: var(--border);
  font-style: italic;
}

/* 文件夹操作按钮 */
.fm-folder-actions {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 0.75rem;
}

.fm-folder-hint {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--primary);
}

/* 文件列表表格 */
.file-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: var(--primary);
  background: var(--teal-50);
}

.fi-doc { background: #dbeafe; }
.fi-xls { background: #dcfce7; }
.fi-zip { background: #fef3c7; }
.fi-img { background: #dbeafe; }
.fi-vid { background: #fce7f3; }
.fi-aud { background: #fef3c7; }
.fi-pdf  { background: #fee2e2; }
.fi-txt  { background: #f3f4f6; }
.fi-code { background: #e0f2fe; }
.fi-file { background: #f3f4f6; }

.file-name-link {
  cursor: pointer;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.file-name-link:hover {
  color: var(--brand-teal-deep);
  text-decoration: underline;
}

/* 游客卡片 */
.fm-guest-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guest-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.guest-card-body {
  padding: 1.25rem;
}

.guest-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.guest-user {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.guest-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.guest-phone {
  font-size: 0.8125rem;
  color: var(--primary);
}

.guest-status {
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
}

.gst-pending  { background: #fff3e0; color: #e67e00; }
.gst-approved { background: #e6f7ec; color: #1c7d70; }
.gst-rejected { background: #fef0f0; color: #c75450; }

.guest-info-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.guest-remark {
  background: var(--muted);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.guest-remark .label {
  color: var(--muted-foreground);
}

.guest-file-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--teal-50);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.guest-file-row:hover {
  background: var(--teal-50);
}

.guest-file-ext {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guest-file-info {
  flex: 1;
  margin: 0 0.75rem;
  min-width: 0;
}

.guest-file-name {
  font-size: 0.8125rem;
  color: var(--foreground);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-file-size {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.guest-file-btn {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.guest-review-info {
  margin-top: 0.625rem;
  padding: 0.375rem 0.625rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.guest-card-footer {
  display: flex;
  border-top: 1px solid var(--hairline);
}

.guest-card-footer .btn-xs {
  flex: 1;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--hairline);
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  background: #fff;
}

.guest-card-footer .btn-xs:last-child {
  border-right: none;
}

.guest-card-footer .btn-success {
  color: #1c7d70;
}

.guest-card-footer .btn-warning-outline {
  color: #e67e00;
}

.guest-card-footer .btn-danger {
  color: #c75450;
}

/* 文件预览弹窗 */
.fm-preview-modal {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
}

.fm-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--muted);
  flex-shrink: 0;
}

.fm-preview-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 0.75rem;
}

.fm-preview-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.fm-preview-download {
  font-size: 0.8125rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.fm-preview-download:hover {
  color: var(--brand-teal-deep);
}

.fm-preview-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 300px;
}

.fm-text-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.fm-text-content {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #d4d4d4;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 60vh;
  overflow: auto;
}

/* 移动文件弹窗 */
.fm-move-file {
  font-size: 0.9375rem;
  color: var(--foreground);
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--muted);
  border-radius: var(--radius-md);
}

.fm-folder-select {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.fm-folder-option {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fm-folder-option:last-child {
  border-bottom: none;
}

.fm-folder-option:hover {
  background: var(--teal-50);
}

.fm-folder-option.selected {
  background: var(--teal-50);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

/* 文件类型图标颜色 */
.fi-doc { background: #dbeafe; color: #2563eb; }
.fi-xls { background: #dcfce7; color: #16a34a; }
.fi-zip { background: #fef3c7; color: #d97706; }
.fi-img { background: #dbeafe; color: #2563eb; }
.fi-vid { background: #fce7f3; color: #db2777; }
.fi-aud { background: #fef3c7; color: #d97706; }
.fi-pdf  { background: #fee2e2; color: #dc2626; }
.fi-txt  { background: #f3f4f6; color: #6b7280; }
.fi-code { background: #e0f2fe; color: #0284c7; }
.fi-file { background: #f3f4f6; color: #6b7280; }

/* action-btns 紧凑操作按钮 */
.action-btns {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 按钮变体 */
.btn-success {
  background: #1c7d70;
  color: #fff;
  border: 1px solid #1c7d70;
}

.btn-success:hover {
  background: #15615a;
}

.btn-warning-outline {
  color: #e67e00;
  border: 1px solid #fcd34d;
  background: #fff;
}

.btn-warning-outline:hover {
  background: #fffbeb;
  border-color: #e67e00;
}

.btn-danger-outline {
  color: #c75450;
  border: 1px solid #fecaca;
  background: #fff;
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #c75450;
}

/* ============================================================
   顶部栏用户菜单 (User Menu)
   ============================================================ */

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.user-menu-trigger:hover {
  background: rgba(16, 72, 80, 0.06);
}

.user-menu-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.user-menu-avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

.um-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.um-avatar-text {
  line-height: 1;
}

.user-menu-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-700);
  white-space: nowrap;
}

.user-menu-chevron {
  color: var(--muted-foreground);
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* 下拉菜单 */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 1000;
}

.user-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.user-menu-dropdown-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warm-900);
}

.user-menu-dropdown-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.user-menu-dropdown-email {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0;
  word-break: break-all;
}

.user-menu-dropdown-divider {
  height: 1px;
  background: var(--hairline-soft);
  margin: 0.5rem 0;
}

.user-menu-logout-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--danger);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-menu-logout-btn:hover {
  background: #fef2f2;
}

/* ========== 客户管理 - 搜索与顶部操作栏 ========== */
.top-bar .search-input {
  width: 220px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}
.top-bar .search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 178, 169, 0.15);
}

/* ========== 客户管理 - 编辑表单 ========== */
.field-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline-soft);
  padding-bottom: 1.25rem;
}
.field-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.field-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--warm-800);
  margin: 0 0 0.75rem 0;
  padding-left: 0.5rem;
  border-left: 3px solid var(--brand);
}
.field-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.field-section-header .field-section-title {
  margin-bottom: 0;
}

/* 两列表单网格 */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.form-grid-2 .full-width {
  grid-column: 1 / -1;
}

/* 可选区块 */
.optional-section {
  padding: 0.75rem 1rem;
  background: var(--warm-50);
  border-radius: var(--radius-md);
  border: 1px dashed var(--hairline);
}
.optional-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
  user-select: none;
}
.optional-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.optional-checkbox-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warm-700);
}
.optional-fields {
  padding-top: 0.5rem;
}

/* 劳动者卡片 */
.workers-container {
  display: grid;
  gap: 0.75rem;
}
.worker-card {
  background: var(--warm-50);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  position: relative;
}
.worker-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.worker-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--warm-700);
}

/* 必填标记 */
.required {
  color: var(--danger);
  font-weight: 600;
  margin-left: 0.125rem;
}

/* ========== 客户管理 - 详情弹窗 ========== */
.detail-modal {
  max-width: 700px;
  max-height: 85vh;
}
.detail-field-row {
  display: flex;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: center;
  transition: background 0.12s;
}
.detail-field-row:last-child { border-bottom: none; }
.detail-field-row:hover { background: var(--warm-50); }
.detail-field-label {
  min-width: 160px;
  max-width: 220px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.detail-field-value {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--warm-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
}
.detail-value-text {
  flex: 1;
}
.copy-btn {
  flex-shrink: 0;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.copy-btn:hover { opacity: 1; }
.detail-field-row.hidden { display: none; }

/* ========== 客户管理 - 客户表单单窗 (modal customer-form-modal) ========== */
.customer-form-modal {
  max-width: 920px;
  max-height: 85vh;
  overflow-y: auto;
}

/* ========== 字段管理专用 ========== */
.card-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: monospace;
  margin-top: 0.125rem;
}

/* badge 变体 */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  vertical-align: middle;
}
.badge-default {
  background: var(--warm-100);
  color: var(--warm-600);
}
.badge-secondary {
  background: #e0f2fe;
  color: #0369a1;
}
.badge-success {
  background: #dcfce7;
  color: #15803d;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted-foreground);
}

.text-danger { color: var(--danger); }
.text-muted { color: var(--muted-foreground); }
.mb-4 { margin-bottom: 1rem; }

/* empty state */
.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

