/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

a {
  text-decoration: none;
  color: #409EFF;
}

.container {
  display: flex;
  min-height: 100vh;
  background-color: #f6f6f6;
}

/* 左侧菜单 */
.sidebar {
  width: 240px;
  background-color: #1e2b3c;
  color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.logo {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 4px;
}

.logo span {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item {
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  background-color: #283a54;
}

.menu-item i:first-child {
  margin-right: 10px;
  font-size: 18px;
}

.menu-item span {
  flex-grow: 1;
}

.menu-item .el-icon-arrow-down {
  font-size: 12px;
}

.sub-menu {
  background-color: #192536;
  padding: 5px 0;
}

.sub-menu-item {
  padding: 12px 20px 12px 45px;
  cursor: pointer;
  transition: all 0.3s;
  color: rgba(255, 255, 255, 0.8);
}

.sub-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sub-menu-item.active {
  background-color: #283a54;
  color: #fff;
}

/* 右侧内容 */
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部导航栏 */
.header {
  height: 60px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
  color: #606266;
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb span {
  margin: 0 5px;
  color: #606266;
}

.breadcrumb span a {
  color: #409EFF;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
}

.divider {
  margin: 0 10px;
}

/* 标签页 */
.tabs {
  background-color: #fff;
  padding: 10px 20px 0;
  display: flex;
  border-bottom: 1px solid #e6e6e6;
}

.tab-item {
  padding: 8px 15px;
  margin-right: 5px;
  cursor: pointer;
  position: relative;
  border: 1px solid #e6e6e6;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background-color: #f5f7fa;
  display: flex;
  align-items: center;
}

.tab-item.active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  color: #ff4158;
}

.tab-item span {
  margin-right: 5px;
}

.tab-item i {
  font-size: 12px;
  margin-left: 5px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-item i:hover {
  background-color: #c0c4cc;
  color: #fff;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* 搜索栏和员工选择器布局 */
.search-bar {
  margin-bottom: 20px;
  background-color: #fff;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.search-bar .el-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.search-input {
  max-width: 500px;
}

.employee-selector {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.selected-employee {
  color: #606266;
  font-size: 14px;
}

/* 表格区域 */
.notes-table {
  background-color: #fff;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.image-preview {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 员工信息卡片 */
.employee-card {
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.employee-info {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-details {
  flex: 1;
}

.employee-name {
  font-size: 16px;
  font-weight: 500;
  color: #1f2329;
  margin-bottom: 4px;
}

.employee-meta {
  color: #8c8c8c;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.employee-meta-item i {
  font-size: 13px;
}

.employee-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
}

.stat-card {
  background: #f7f8fa;
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #1f2329;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-title {
  font-size: 12px;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-title i {
  font-size: 12px;
}

/* 查看详情弹窗样式 */
.el-message-box {
  padding: 0;
  max-width: 500px;
}

.el-message-box__header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #EBEEF5;
}

.el-message-box__title {
  font-size: 16px;
  font-weight: 500;
}

.el-message-box__content {
  padding: 20px;
}

.note-detail-content {
  margin-top: 15px;
}

.note-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
}

.note-detail-label {
  width: 80px;
  color: #909399;
  flex-shrink: 0;
}

.note-detail-value {
  color: #303133;
  flex: 1;
  word-break: break-all;
}

/* 分页 */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Element UI 表格自定义样式 */
.el-table th {
  background-color: #fafafa;
}

.el-table--border, .el-table--group {
  border: 1px solid #ebeef5;
}

.el-table td, .el-table th.is-leaf {
  border-bottom: 1px solid #ebeef5;
}

/* 覆盖Element UI按钮样式 */
.el-button--primary {
  background-color: #ff5b80;
  border-color: #ff5b80;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background-color: #ff4970;
  border-color: #ff4970;
}

.el-button--success {
  background-color: #67c23a;
  border-color: #67c23a;
}

.el-dropdown-link {
  cursor: pointer;
  color: #606266;
  display: flex;
  align-items: center;
}

.el-dropdown-link i.el-icon-user {
  margin-right: 5px;
  font-size: 16px;
}

.el-dropdown-menu__item i {
  margin-right: 5px;
}

/* 分页组件 */
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #ff5b80;
  border-color: #ff5b80;
}

/* 开关组件 */
.el-switch.is-checked .el-switch__core {
  border-color: #ff5b80;
  background-color: #ff5b80;
}

/* 操作按钮样式 */
.operation-buttons {
  display: flex;
  justify-content: center;
  gap: 5px; /* 按钮之间的间距 */
}

/* 调整按钮大小，使其更适合一行显示 */
.operation-buttons .el-button--mini {
  padding: 5px 10px;
  font-size: 12px;
}

/* 调整 el-switch 组件样式，确保文本能够完全显示 */
.el-switch__label {
  font-size: 12px !important;
}

.el-switch__label.is-active {
  color: #fff !important;
}

/* 确保开关组件的文本不会被截断 */
.el-switch {
  width: auto !important;
  margin: 0 auto;
}

/* 调整开关左右两侧的文本位置 */
.el-switch__label--left {
  margin-right: 8px;
}

.el-switch__label--right {
  margin-left: 8px;
}

@media screen and (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .logo span,
  .menu-item span,
  .menu-item i:last-child {
    display: none;
  }
  
  .menu-item {
    padding: 15px 0;
    justify-content: center;
  }
  
  .menu-item i:first-child {
    margin-right: 0;
    font-size: 20px;
  }
  
  .sub-menu-item {
    padding: 12px 0;
    text-align: center;
  }
  
  .content {
    margin-left: 60px;
  }
} 