/* =============================================
   月子中心智能化运营管理系统 - 高级简约风格
   ============================================= */

/* CSS 变量 - 柔和温馨色调 */
:root {
  --primary: #e8967a;
  --primary-dark: #d07a5e;
  --primary-light: #fce4d6;
  --primary-subtle: #fff5f0;

  /* 数字化渐变 */
  --gradient-primary: linear-gradient(135deg, #e8967a 0%, #c97a62 100%);
  --gradient-primary-h: linear-gradient(135deg, #e8967a 0%, #d07a5e 100%);

  /* 图表配色 */
  --chart-1: #e8967a;
  --chart-2: #6a9a5a;
  --chart-3: #4a90d9;
  --chart-4: #d4a05a;
  --chart-5: #a0788a;
  --chart-6: #c9685c;

  --success: #6a9a5a;
  --success-light: #e8f5e6;
  --warning: #d4a05a;
  --warning-light: #fdf5e0;
  --danger: #c9685c;
  --danger-light: #fce8e6;
  --purple: #a0788a;
  --purple-light: #f5edf0;
  
  --bg: #f8f5f0;
  --card-bg: #ffffff;
  --sidebar-bg: #3d2d27;
  --sidebar-text: rgba(255,255,255,0.85);
  --sidebar-active: rgba(232,150,122,0.18);
  --sidebar-hover: rgba(255,255,255,0.07);
  
  --text: #2d2320;
  --text-secondary: #9a8a82;
  --text-muted: #bab0a8;
  --border: #ece4dc;
  --border-light: #f3ede8;
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  
  --shadow: 0 1px 3px rgba(45,35,32,0.06), 0 1px 2px rgba(45,35,32,0.04);
  --shadow-md: 0 4px 12px rgba(45,35,32,0.06), 0 1px 3px rgba(45,35,32,0.04);
  --shadow-lg: 0 8px 30px rgba(45,35,32,0.08), 0 2px 8px rgba(45,35,32,0.04);
  --shadow-glow: 0 4px 20px rgba(232,150,122,0.18);
  
  --sidebar-width: 200px; /* v2001 侧边栏收窄至200px */
  --header-height: 60px;
  
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置样式 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* =============================================
   统一可视化仪表盘样式
   ============================================= */
.ud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.ud-header-left {
  flex: 1;
}

.ud-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.ud-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.ud-header-right {
  display: flex;
  gap: 12px;
}

.ud-btn-refresh {
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.ud-btn-refresh:hover {
  background: var(--primary);
  color: white;
}

/* KPI 卡片网格 */
.ud-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ud-kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  border-left: 4px solid var(--kpi-color, var(--primary));
}

.ud-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ud-kpi-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.ud-kpi-info {
  flex: 1;
}

.ud-kpi-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ud-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.ud-kpi-value:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.ud-kpi-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.ud-kpi-trend {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.ud-kpi-trend-up {
  color: #6a9a5a;
}

.ud-kpi-trend-down {
  color: #c9685c;
}

.ud-kpi-trend-flat {
  color: var(--text-muted);
}

/* 主体内容网格 */
.ud-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .ud-main-grid {
    grid-template-columns: 1fr;
  }
}

.ud-left-col,
.ud-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 卡片通用样式 */
.ud-chart-card,
.ud-list-card,
.ud-action-card,
.ud-alert-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ud-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.ud-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.ud-card-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.ud-card-body {
  padding: 20px;
}

/* 图表容器 */
.ud-chart-card .ud-card-body {
  height: 250px;
  position: relative;
}

/* 列表样式 */
.ud-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ud-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.ud-list-item:hover {
  background: var(--primary-subtle);
}

.ud-list-item-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ud-list-item-info {
  flex: 1;
}

.ud-list-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.ud-list-item-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.ud-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 快捷操作网格 */
.ud-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ud-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.ud-action-item:hover {
  background: var(--primary-subtle);
  border-color: var(--action-color, var(--primary));
  transform: translateY(-2px);
}

.ud-action-icon {
  font-size: 28px;
}

.ud-action-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* 预警消息样式 */
.ud-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ud-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.ud-alert-info {
  flex: 1;
}

.ud-alert-message {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.ud-alert-time {
  font-size: 11px;
  color: var(--text-muted);
}

.ud-alert-warning {
  border-left-color: #f39c12;
}

.ud-alert-danger {
  border-left-color: #c9685c;
}

.ud-alert-info {
  border-left-color: #3498db;
}

/* 底部模块网格 */
.ud-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ud-module-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.ud-module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ud-module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--primary-subtle);
  border-bottom: 1px solid var(--border-light);
}

.ud-module-icon {
  font-size: 24px;
}

.ud-module-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.ud-module-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ud-module-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.ud-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.ud-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.ud-stat-success {
  color: #6a9a5a;
}

.ud-stat-warning {
  color: #f39c12;
}

.ud-stat-danger {
  color: #c9685c;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ud-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ud-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.login-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e8967a 0%, #c97a62 30%, #3d2d27 100%);
  z-index: 9999;
}

.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.login-box {
  position: relative;
  width: 380px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  padding: 36px 20px 24px;
  background: linear-gradient(135deg, #e8967a 0%, #c97a62 100%);
  color: white;
}

.login-logo .logo-icon {
  display: block; margin: 0 auto 8px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
}

.login-logo h1 {
  font-size: 22px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 4px;
}

.login-logo p {
  font-size: 13px; opacity: 0.85; font-weight: 400;
}

.login-form { padding: 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--card-bg);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,150,122,0.12);
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232,150,122,0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.login-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   主应用布局
   ============================================= */
.main-app {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   侧边栏 - 深色简约
   ============================================= */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header .logo-icon { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.sidebar-header .sidebar-logo { margin-right: 6px; }

.sidebar-header .sidebar-title {
  font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--sidebar-text);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.nav-group { margin-bottom: 2px; }

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 9px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.40);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  border-radius: 0;
}

.nav-group-header:hover {
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
}

.nav-group-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.30);
}

.nav-group-header.expanded .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-group-items.expanded {
  max-height: 500px;
}

/* 嵌套子组的导航项需要取消max-height限制 */
.nav-group-items .nav-group-items.expanded {
  max-height: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 32px;
  color: var(--sidebar-text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  font-size: 13.5px;
}

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

.nav-item.active {
  background: var(--sidebar-active);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon { font-size: 17px; width: 22px; text-align: center; }
.nav-item .nav-label { font-size: 13.5px; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.user-info #user-name { font-weight: 500; font-size: 13px; color: var(--sidebar-text); }

.role-tag {
  padding: 2px 10px;
  background: rgba(232,150,122,0.22);
  border-radius: 20px;
  font-size: 10px;
  color: var(--primary-light);
  font-weight: 500;
}

.btn-logout {
  width: 100%;
  padding: 7px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.50);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-logout:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.70);
}

/* =============================================
   主内容区
   ============================================= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  padding: 0 32px;
  background: linear-gradient(135deg, #fef7f5 0%, #fdf2ee 50%, #fef7f5 100%);
  border-bottom: 2px solid #e8967a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(232,150,122,0.12);
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #3d2d27;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.current-date {
  color: #8b6f63;
  font-size: 13px;
  font-weight: 500;
}

.page-content {
  padding: 28px 32px;
}

/* =============================================
   统计卡片 - 可视化模块
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.4;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 400;
}

/* =============================================
   卡片组件
   ============================================= */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 16px 20px;
}

/* =============================================
   表格 - 简约干净
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

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

.data-table tbody tr:hover {
  background: var(--primary-subtle);
}

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

/* 物品使用统计表格 - 居中紧凑 */
.room-item-stats-table th,
.room-item-stats-table td {
  text-align: center !important;
  padding: 5px 2px !important;
  font-size: 11px;
}
.room-item-stats-table th {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

/* =============================================
   按钮 - 精致圆润
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(232,150,122,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(106,154,90,0.3);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(201,104,92,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

/* =============================================
   标签 / 徽章
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.tag-green { background: var(--success-light); color: var(--success); }
.tag-gray { background: #f0eeec; color: #8a7a72; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-yellow { background: var(--warning-light); color: var(--warning); }
.tag-red { background: var(--danger-light); color: var(--danger); }

/* =============================================
   表单控件
   ============================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-item {
  margin-bottom: 14px;
}

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

.form-item label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-item input,
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--card-bg);
  transition: all var(--transition);
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,150,122,0.1);
}

.form-item textarea {
  min-height: 70px;
  resize: vertical;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--card-bg);
  color: var(--text);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,150,122,0.1);
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-bar .form-item {
  margin-bottom: 0;
}

.search-bar input,
.search-bar select {
  min-width: 130px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: all var(--transition);
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,150,122,0.1);
}

/* =============================================
   模态框
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,35,32,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-lg { max-width: 900px; }

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

.modal-title { font-size: 16px; font-weight: 600; }

.modal-close {
  width: 28px; height: 28px;
  border: none; background: none;
  font-size: 20px; cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* =============================================
   Toast 提示
   ============================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 240px;
  border: 1px solid var(--border-light);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon { font-size: 18px; }
.toast-message { flex: 1; font-size: 13px; }

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--primary); }

/* =============================================
   页面头部
   ============================================= */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* =============================================
   布局网格
   ============================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

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

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =============================================
   空状态
   ============================================= */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

/* =============================================
   快捷操作按钮组
   ============================================= */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.quick-action-btn {
  padding: 14px 12px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.quick-action-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.quick-action-btn .action-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.quick-action-btn .action-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   客户周期标签
   ============================================= */
.customer-cycle-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.cycle-week1 { background: var(--primary-light); color: #c07848; }
.cycle-week2 { background: var(--warning-light); color: #b08830; }
.cycle-week3 { background: var(--purple-light); color: #a0788a; }
.cycle-week4 { background: var(--success-light); color: #6a9a5a; }
.cycle-week5 { background: #f3e5f5; color: #6a1b9a; }
.cycle-week6 { background: #fce4ec; color: #ad1457; }

/* =============================================
   标签页
   ============================================= */
.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.tab-item {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab 内容区域 - 只显示激活的 */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* =============================================
   周期模板表格 - 紧凑美观样式
   ============================================= */
.template-table {
  font-size: 11px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.template-table th,
.template-table td {
  padding: 2px 1px;
  text-align: center !important;
  vertical-align: middle;
  border: 1px solid #e8e0d8;
}

/* 天数列 */
.template-table .tm-col-day,
.template-table .tm-cell-day {
  width: 36px;
  min-width: 36px;
  font-weight: 600;
  font-size: 10px;
  background: #f5f0eb;
  text-align: center;
  line-height: 1.4;
}

/* 餐次大标题行 */
.template-table th[class*="tm-col-"] {
  text-align: center !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 2px;
  letter-spacing: 0.5px;
}

/* 子类别行 */
.template-table .tm-sub {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 1px;
  text-align: center;
}

/* 各餐次列底色 */
.template-table .tm-col-breakfast,
.template-table .tm-cell-breakfast { background: #fff8f0; }
.template-table .tm-col-morning,
.template-table .tm-cell-morning { background: #fffef5; }
.template-table .tm-col-lunch,
.template-table .tm-cell-lunch { background: #f5faf5; }
.template-table .tm-col-aft,
.template-table .tm-cell-aft { background: #faf5fa; }
.template-table .tm-col-dinner,
.template-table .tm-cell-dinner { background: #f5f8fa; }
.template-table .tm-col-night,
.template-table .tm-cell-night { background: #faf5f5; }

/* 子类别底色（比主色更浅） */
.template-table .breakfast-sub { background: #fff3e0; }
.template-table .morning-sub { background: #fffde7; }
.template-table .lunch-sub { background: #e8f5e9; }
.template-table .aft-sub { background: #f3e5f5; }
.template-table .dinner-sub { background: #e3f2fd; }
.template-table .night-sub { background: #fce4ec; }

/* 紧凑下拉框 */
.template-table .tm-select {
  font-size: 9px;
  padding: 1px 2px 1px 4px;
  height: 22px;
  min-width: 0;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #d8d0c8;
  background: #fff;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  -moz-text-align-last: center;
  appearance: auto;
}

.template-table .tm-select:focus {
  border-color: var(--primary);
  outline: none;
}

.template-table .tm-select option {
  font-size: 10px;
}

/* =============================================
   门店指示器
   ============================================= */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* =============================================
   可视化进度条
   ============================================= */
.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .page-content {
    padding: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal {
    width: 95%;
    max-height: 90vh;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   打印样式
   ============================================= */
@media print {
  .sidebar,
  .main-header,
  .no-print {
    display: none !important;
  }

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

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  #employee-archive-detail .card {
    margin-bottom: 12px;
  }

  #employee-archive-detail .archive-print-header {
    display: block !important;
    margin-bottom: 16px;
  }

  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-content {
    padding: 0;
  }

  /* 销售报表打印专用 */
  .sales-report-tabs,
  .sales-report-toolbar {
    display: none !important;
  }

  .sales-report-print-header {
    display: block !important;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
  }

  .sales-report-print-header h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 6px;
    color: #333;
  }

  .sales-report-print-header p {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 0;
  }
}

/* 销售报表打印标题 - 默认隐藏 */
.sales-report-print-header {
  display: none;
}

/* =============================================
   工具类
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* =============================================
   滚动条美化
   ============================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =============================================
   报表导出卡片
   ============================================= */
.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.report-filter-bar .form-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-filter-bar .form-item label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.report-filter-bar .form-item input,
.report-filter-bar .form-item select {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  min-width: 120px;
}

.report-filter-bar .form-item .btn-primary {
  height: 32px;
  padding: 0 20px;
  font-size: 13px;
}

/* 统计指标行 */
.report-metrics-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.report-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 12px;
  border-right: 1px solid var(--border-light);
}

.report-metric:last-child {
  border-right: none;
}

.report-metric-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.report-metric-label {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.report-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 2px solid #e0e0e0;
  box-shadow: 0 3px 10px rgba(45,35,32,0.08), 0 1px 2px rgba(45,35,32,0.04);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  min-height: 180px;
}

.report-card:hover {
  transform: translateY(-2px);
}

.report-card .report-menu {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 2px;
  padding: 2px 4px;
  border-radius: 4px;
}

.report-card .report-menu:hover {
  background: var(--bg);
  color: var(--text-secondary);
}

.report-card .report-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.report-card .report-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 38px;
}

.report-card .report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.report-card .report-actions .report-action-text {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.report-card .report-actions .report-action-text:hover {
  color: var(--primary);
}

.report-card .report-actions .report-action-btn {
  font-size: 13px;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.report-card .report-actions .report-action-btn:hover {
  background: #d47a5c;
}

@media (max-width: 1100px) {
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 验收录入表格样式 */
.rcv-input-table thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 6px;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

.rcv-input-table tbody td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.rcv-input-table tbody tr:hover {
  background: transparent;
}

.rcv-input-table input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(232,150,122,0.1);
  outline: none;
}

@media (max-width: 768px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .report-metrics-bar {
    flex-wrap: wrap;
  }
}

/* 环形进度组件 */
.progress-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-ring-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

/* 小号环形进度 */
.progress-ring.sm {
  width: 48px;
  height: 48px;
}

.progress-ring.sm .progress-ring-inner {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

/* 大号环形进度 */
.progress-ring.lg {
  width: 100px;
  height: 100px;
}

.progress-ring.lg .progress-ring-inner {
  width: 78px;
  height: 78px;
  font-size: 20px;
}

/* 迷你柱状图组件 */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
  padding: 0 4px;
}

.mini-bar {
  flex: 1;
  min-width: 8px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
  transition: height 0.5s ease;
  position: relative;
}

.mini-bar:hover {
  opacity: 0.8;
}

.mini-bar-label {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

/* 数据摘要横幅 */
.page-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.page-summary-bar .summary-item {
  text-align: center;
}

.page-summary-bar .summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.page-summary-bar .summary-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 星级评分 */
.star-rating {
  display: inline-flex;
  gap: 1px;
  font-size: 16px;
  color: #f0c040;
}

.star-rating .star-empty {
  color: #e0d8d0;
}

/* 趋势标签 */
.trend-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.trend-tag.up {
  background: #e8f5e9;
  color: #2e7d32;
}

.trend-tag.down {
  background: #fce8e6;
  color: #c62828;
}

.trend-tag.stable {
  background: var(--primary-light);
  color: var(--primary-dark);
}
/* ===== 外送餐登记样式 ===== */
.conflict-warning {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e74c3c;
  background: #fde8e8;
  margin: 8px 0;
  font-size: 13px;
}
.conflict-ok {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #27ae60;
  background: #eafaf1;
  color: #27ae60;
  font-weight: 600;
  margin: 8px 0;
  font-size: 13px;
}

/* ========== KPI卡片一行显示（纯CSS修复）========== */
/* 根因：app-main-part2.js中6张卡片用了flex布局 + min-width:320px + flex-wrap:wrap */
.bdd-row:has(.bdd-tc) {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}
.bdd-row:has(.bdd-tc) .bdd-tc {
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 0% !important;
}
/* 兼容不支持:has()的浏览器 */
@media screen {
    .bdd-row > .bdd-tc:nth-child(1):nth-last-child(6) ~ .bdd-tc,
    .bdd-row > .bdd-tc:first-child:nth-last-child(6),
    .bdd-row > .bdd-tc:first-child:nth-last-child(6) ~ .bdd-tc {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }
    /* 当父元素恰好有6个bdd-tc子元素时 */
    .bdd-row:has(> .bdd-tc:nth-child(6)) {
        flex-wrap: nowrap !important;
    }
}
/* ============================================ */


/* ========== 新增角色权限选择hover效果 ========== */
.role-perm-label-new:hover {
  background: #fff3e0 !important;
}
.role-perm-label-new:has(input:checked) {
  background: var(--primary-light, #e3f2fd) !important;
}
/* ============================================ */


/* === 经营看板6卡片强制一行（静态兜底，避免JS style tag丢失） === */
.bdd-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;}
.bdd-row > .bdd-tc{min-width:0!important;max-width:100%!important;}
/* === END === */

/* === 账号弹窗门店多选下拉样式 === */
.store-multiselect,
.role-multiselect {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--text-color, #333);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.store-multiselect:focus,
.role-multiselect:focus {
  border-color: var(--primary-color, #f4a261);
  box-shadow: 0 0 0 2px rgba(244, 162, 97, .15);
}
.store-multiselect option,
.role-multiselect option {
  padding: 5px 6px;
  border-radius: 4px;
  margin: 1px 0;
}
.store-multiselect option:disabled,
.role-multiselect option:disabled {
  color: #aaa;
  background: #f5f5f5;
}
.store-multiselect option:checked,
.role-multiselect option:checked {
  background: var(--primary-color, #f4a261) linear-gradient(0deg, var(--primary-color, #f4a261) 0%, var(--primary-color, #f4a261) 100%);
  color: #fff;
}
.store-multiselect option:hover:not(:disabled),
.role-multiselect option:hover:not(:disabled) {
  background: #fff3e0;
}
/* === 账号弹窗带勾选框的下拉多选组件 === */
.acc-dropdown-check {
  position: relative;
  width: 100%;
  font-size: 13px;
  color: var(--text-color, #333);
}
.acc-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.acc-dropdown-trigger:hover {
  border-color: var(--primary-color, #f4a261);
}
.acc-dropdown-check.open .acc-dropdown-trigger {
  border-color: var(--primary-color, #f4a261);
  box-shadow: 0 0 0 2px rgba(244, 162, 97, .15);
}
.acc-dropdown-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-color, #333);
}
.acc-dropdown-text.placeholder {
  color: #999;
}
.acc-dropdown-arrow {
  margin-left: 8px;
  font-size: 11px;
  color: #999;
  transition: transform .2s;
}
.acc-dropdown-check.open .acc-dropdown-arrow {
  transform: rotate(180deg);
}
.acc-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 100;
  display: none;
  padding: 4px 0;
}
.acc-dropdown-check.open .acc-dropdown-panel {
  display: block;
}
.acc-dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .15s;
  line-height: 1.4;
}
.acc-dropdown-option:hover:not(.disabled) {
  background: #fff3e0;
}
.acc-dropdown-option.disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f5f5f5;
}
.acc-dropdown-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-color, #f4a261);
  cursor: pointer;
}
.acc-dropdown-option.disabled input[type="checkbox"] {
  cursor: not-allowed;
}
.acc-dropdown-option span {
  flex: 1;
}
/* === END 账号弹窗带勾选框的下拉多选组件 === */
