﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7fa;
}

.el-header {
  background-color: #409eff;
  color: white;
  padding: 0;
  height: 60px !important;
  line-height: 60px;
}

.header-content {
  padding: 0 20px;
}

.header-content h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

/* 应用容器 */
.app-container {
  height: 100vh;
  display: flex;
  flex-direction: row;
  /* 改为横向布局 */
}

/* ==================== 侧边栏 - 现代化设计 ==================== */
.sidebar {
  background: #1a1d2e;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.sidebar-menu-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-menu-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Logo 区域 */
.sidebar-logo {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-logo-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* 菜单分组标题 */
.sidebar-menu-group {
  padding: 16px 16px 6px 16px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 菜单容器 */
.sidebar .el-menu {
  border-right: none;
  flex: 1;
  width: 100%;
  text-align: left;
  background: transparent !important;
  padding: 0 10px;
}

/* 隐藏子菜单展开图标 */
.sidebar .el-sub-menu__icon-arrow {
  display: none;
}

/* 子菜单标题样式（作为分组标题） */
.sidebar .el-sub-menu__title {
  height: auto !important;
  line-height: normal !important;
  padding: 16px 16px 6px 6px !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: default !important;
  background: transparent !important;
}

.sidebar .el-sub-menu__title:hover {
  background: transparent !important;
  color: #6b7280 !important;
}

/* 子菜单内容 */
.sidebar .el-menu--inline {
  background: transparent !important;
}

/* 菜单项 */
.sidebar .el-menu-item {
  height: 40px !important;
  line-height: 40px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding-left: 14px !important;
  margin: 2px 0 !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #9ca3af !important;
  background: transparent !important;
}

.sidebar .el-menu-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e5e7eb !important;
}

.sidebar .el-menu-item.is-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.sidebar .el-menu-item span {
  font-size: 13px;
  font-weight: 400;
}

.sidebar .el-menu-item.is-active span {
  font-weight: 500;
}

/* 菜单图标 */
.sidebar .el-menu-item .el-icon {
  margin-right: 10px;
  font-size: 16px;
}

/* 用户信息区域 */
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 70px;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

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

.sidebar-user-name {
  color: white;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-logout {
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.2s ease;
}

.sidebar-user:hover .sidebar-user-logout {
  color: #e5e7eb;
}

/* ==================== 侧边栏收起/展开按钮 ==================== */
/* 侧边栏右侧的收起按钮（向左箭头） */
.sidebar-toggle-btn {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 24px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  width: 28px;
  box-shadow: 2px 0 12px rgba(102, 126, 234, 0.5);
}

.sidebar-toggle-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 箭头图标 */
.sidebar-toggle-icon {
  width: 12px;
  height: 12px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* 屏幕左侧的展开按钮（向右箭头） */
.sidebar-expand-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 24px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.sidebar-expand-btn:hover {
  width: 28px;
  box-shadow: 2px 0 12px rgba(102, 126, 234, 0.5);
}

.sidebar-expand-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 展开按钮的箭头图标（向右） */
.sidebar-expand-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

/* 侧边栏收起时显示展开按钮 */
.sidebar.collapsed+.sidebar-expand-btn {
  display: flex;
}

/* 侧边栏收起状态 */
.sidebar.collapsed {
  width: 0 !important;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-toggle-btn {
  display: none;
}

/* 侧边栏遮罩层（移动端） */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}



.sidebar-footer .el-button {
  width: 100%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-footer .el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 响应式：移动端 */
@media (max-width: 768px) {
  .sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    z-index: 1000;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .menu-toggle-btn {
    display: flex;
  }

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

/* 桌面端 */
@media (min-width: 769px) {
  .sidebar-overlay {
    display: none;
  }

  .menu-toggle-btn {
    display: flex;
  }
}

/* 主内容区 */
.main-content {
  padding: 0;
  height: 100vh;
  /* 改为全屏高度 */
  overflow-y: auto;
  background-color: #f5f7fa;
  flex: 1;
}

/* AdJust 页面时，移除宽度限制，覆盖全屏 */
.main-content.adjust-fullscreen-mode {
  padding: 0;
  width: 100%;
}

/* AdJust 页面全屏显示 */
.adjust-page-fullscreen {
  height: 100vh;
  /* 改为全屏高度 */
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.adjust-page-fullscreen .data-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin: 0;
  border-radius: 0;
  /* 给遮罩层定位 */
}

.adjust-page-fullscreen .el-table {
  flex: 1;
  overflow: auto;
}

/* AdJust 表格滚动容器（外层只负责横向滚动，纵向交给 el-table 自身，以便固定表头） */
.adjust-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
  /* 自定义滚动条样式（Firefox） */
  scrollbar-width: thin;
  scrollbar-color: #c0c4cc #f5f7fa;
}

/* Webkit 浏览器滚动条样式（Chrome, Safari, Edge） */
.adjust-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.adjust-table-container::-webkit-scrollbar-track {
  background: #f5f7fa;
  border-radius: 4px;
}

.adjust-table-container::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 4px;
}

.adjust-table-container::-webkit-scrollbar-thumb:hover {
  background: #909399;
}

/* 确保表格可以横向滚动，并支持固定列 */
.adjust-table-container .el-table {
  width: 100%;
}

/* 固定列样式 */
.adjust-table-container .el-table__fixed,
.adjust-table-container .el-table__fixed-right {
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.adjust-table-container .el-table__fixed-header-wrapper {
  top: 0;
  left: 0;
  z-index: 10;
}

.adjust-table-container .el-table__fixed-body-wrapper {
  top: 0;
  left: 0;
  z-index: 10;
}

/* 确保表格主体可以滚动 */
.adjust-table-container .el-table__body-wrapper {
  /* 只保留底部横向滚动条（表体区域），纵向也在表体区域滚动 */
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.adjust-table-container .el-table__header-wrapper {
  /* 去掉顶部横向滚动条（表头不单独滚动） */
  overflow-x: hidden !important;
}

/* Element Plus 固定表头/固定列时也可能有独立 wrapper，统一禁用其滚动条 */
.adjust-table-container .el-table__fixed-header-wrapper,
.adjust-table-container .el-table__fixed-right .el-table__fixed-header-wrapper,
.adjust-table-container .el-table__header-wrapper {
  overflow: hidden !important;
}

/* Webkit 浏览器：隐藏表头区域滚动条（仅隐藏，不影响外层滚动） */
.adjust-table-container .el-table__header-wrapper::-webkit-scrollbar,
.adjust-table-container .el-table__fixed-header-wrapper::-webkit-scrollbar {
  height: 0 !important;
}

/* AdJust 筛选栏样式 */
.adjust-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f5f7fa;
  border-radius: 4px;
  flex-wrap: wrap;
}

.adjust-filter-bar .filter-item {
  display: flex;
  align-items: center;
}

/* ================== AdJust 轻量加载遮罩（¥ 动画） ================== */
.adjust-busy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.adjust-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(64, 158, 255, 0.25);
}

.adjust-busy-coin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #409eff;
  background: rgba(64, 158, 255, 0.12);
  border: 1px solid rgba(64, 158, 255, 0.35);
  animation: adjustCoinBounce 900ms ease-in-out infinite;
}

.adjust-busy-text {
  font-size: 12px;
  color: #606266;
  letter-spacing: 0.2px;
}

@keyframes adjustCoinBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-10px) scale(1.03);
  }

  55% {
    transform: translateY(0) scale(1);
  }

  70% {
    transform: translateY(-4px) scale(1.01);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* 配置页面样式 */
.config-section {
  background: white;
  padding: 2px;
  border-radius: 0;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.config-section h3 {
  margin-bottom: 20px;
  color: #303133;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #ebeef5;
  padding-bottom: 10px;
}

.config-item {
  margin-bottom: 20px;
}

/* 为非全屏页面添加内边距（仅上下） */
.main-content>div:not(.adjust-page-fullscreen) {
  padding: 20px 0;
}

/* 表格容器不需要左右边距 */
.main-content .data-card {
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

/* AdJust 页面内部不需要边距 */
.adjust-page-fullscreen .data-card {
  margin: 0;
  border-radius: 0;
}

/* 数据展示样式 */
.data-card {
  background: white;
  padding: 20px;
  border-radius: 0;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 状态卡片样式 */
.status-card {
  background: white;
  padding: 20px;
  border-radius: 0;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.platform-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #f5f7fa;
  border-radius: 4px;
  border-left: 4px solid #409eff;
}

.platform-item.success {
  border-left-color: #67c23a;
}

.platform-item.error {
  border-left-color: #f56c6c;
}

.platform-info {
  flex: 1;
}

.platform-name {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 5px;
}

.platform-data {
  font-size: 14px;
  color: #606266;
}

.platform-amount {
  font-size: 20px;
  font-weight: 600;
  color: #409eff;
}

.platform-amount.error {
  color: #f56c6c;
}

.status-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ebeef5;
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  color: #909399;
  font-size: 14px;
}

.status-value {
  color: #303133;
  font-size: 14px;
  font-weight: 500;
}

.status-value.running {
  color: #67c23a;
}

.status-value.stopped {
  color: #f56c6c;
}

/* 日志样式 */
.log-item {
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 13px;
}

.log-item.info {
  background: #ecf5ff;
  color: #409eff;
}

.log-item.success {
  background: #f0f9ff;
  color: #67c23a;
}

.log-item.error {
  background: #fef0f0;
  color: #f56c6c;
}

.log-item.warning {
  background: #fdf6ec;
  color: #e6a23c;
}

.log-time {
  color: #909399;
  margin-right: 10px;
}

/* 按钮组 */
.button-group {
  margin-top: 20px;
  text-align: right;
}

/* 响应式 */
@media (max-width: 768px) {
  .el-main {
    padding: 10px;
  }

  .config-section {
    padding: 15px;
  }

  .platform-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .platform-amount {
    margin-top: 10px;
  }
}

/* 为非全屏页面添加内边距 */
.main-content>div:not(.adjust-page-fullscreen) {
  padding: 20px;
}

/* 数据卡片样式优化 */
.main-content .data-card {
  margin: 0 0 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* AdJust 页面内部不需要边距和圆角 */
.adjust-page-fullscreen .data-card {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}


/* 预警规则组样式 */
.alert-rule-group {
  border: 2px solid #409EFF;
  border-radius: 6px;
  padding: 15px;
  background-color: #ecf5ff;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.group-title {
  font-weight: 600;
  font-size: 14px;
  color: #303133;
}

.group-actions {
  display: flex;
  gap: 5px;
}

.group-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.group-logic {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.group-children {
  min-height: 50px;
}

.condition-item {
  margin-bottom: 15px;
}

.condition-content {
  padding: 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #ffffff;
}

.condition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.condition-label {
  min-width: 60px;
  color: #606266;
  font-weight: 500;
}

.condition-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fafafa;
  border-radius: 4px;
}

.condition-description {
  font-size: 12px;
  color: #909399;
  padding: 8px;
  background-color: #f5f7fa;
  border-radius: 4px;
  border-left: 3px solid #409EFF;
}

.logic-separator {
  text-align: center;
  margin: 10px 0;
}

.empty-hint {
  text-align: center;
  padding: 30px;
  color: #909399;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  border: 1px dashed #dcdfe6;
}

.group-footer {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 回本红线监控页面样式 */
.payback-monitoring-page {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.payback-monitoring-page .data-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.payback-monitoring-page .filter-bar {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f5f7fa;
  border-radius: 4px;
}

.payback-monitoring-page .filter-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.payback-monitoring-page .el-table {
  flex: 1;
}

.payback-monitoring-page .el-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 600;
}

.payback-monitoring-page .el-table td {
  padding: 12px 0;
}

.todo-list-page {
  padding: 20px;
}

.todo-list-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.todo-list-page .page-header h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: #1f2937;
}

.todo-list-page .page-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.todo-list-page .page-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.todo-list-page .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.todo-list-page .filter-bar .el-date-editor--daterange {
  flex: 0 0 230px;
  max-width: 230px;
}

.todo-list-page .todo-table {
  width: 100%;
}

.operation-records-page {
  padding: 20px;
}

.operation-records-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.operation-records-page .page-header h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: #1f2937;
}

.operation-records-page .page-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.operation-records-page .page-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.operation-records-page .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.el-table .third-party-column,
.el-table th.third-party-column {
  background-color: #fff3bf !important;
}

/* 差值颜色样式（已在 formatDelta 方法中内联定义） */


.operation-chart-card {
  height: 40%;
  min-height: 320px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.operation-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.operation-chart-title {
  font-size: 16px;
  line-height: 24px;
  color: #1f2937;
  font-weight: 600;
}

.operation-chart-subtitle {
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
  margin-top: 2px;
}

.operation-chart-body {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 6px;
}

.operation-chart-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.operation-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.operation-chart-grid {
  stroke: #dbe7f5;
  stroke-dasharray: 4 4;
}

.operation-chart-grid-label,
.operation-chart-tick {
  font-size: 13px;
  fill: #374151;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.operation-chart-axis {
  stroke: #cfd8e3;
}

.operation-chart-line {
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.operation-chart-point {
  stroke: #ffffff;
  stroke-width: 1.5;
  opacity: 0.96;
}

.operation-chart-legend-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #eef2f7;
  padding-top: 10px;
}

.operation-chart-legend-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operation-chart-legend-title {
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
}

.operation-chart-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.operation-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 20px;
}

.operation-chart-legend-line {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  flex-shrink: 0;
}

.operation-chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}


.operation-chart-body {
  position: relative;
}

.operation-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 180px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.operation-chart-tooltip-date {
  font-size: 13px;
  line-height: 18px;
  color: #111827;
  font-weight: 600;
  margin-bottom: 8px;
}

.operation-chart-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #374151;
}

.operation-chart-tooltip-row strong {
  margin-left: auto;
  color: #111827;
  font-weight: 600;
}

.operation-chart-tooltip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.operation-chart-tooltip-status {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}


.weekly-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.weekly-page-toolbar > div:last-child {
  flex-shrink: 0;
}

.weekly-page-toolbar-title {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #606266;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
