/**
 * OA 员工端整体壳 · 对齐现网「顶栏横向模块 + 左侧主操作 + 侧栏菜单」（图2 6Q-测试环境）
 * body 使用 class：oa-emp-body
 */
.oa-emp-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: #303133;
  background: #f0f2f5;
}

.oa-emp {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* —— 顶栏：环境名 + 横向模块 + 右侧工具 —— */
.oa-emp-topbar {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  min-height: 48px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.oa-emp-topbar__brand {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #303133;
  flex-shrink: 0;
  border-right: 1px solid #f0f2f5;
}

.oa-emp-modwrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.oa-emp-modnav {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
  padding: 0 8px;
  margin: 0;
  list-style: none;
}
.oa-emp-modnav li {
  margin: 0;
  flex-shrink: 0;
}
.oa-emp-modnav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 13px;
  color: #606266;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.oa-emp-modnav a:hover {
  color: #409eff;
}
.oa-emp-modnav a.is-active {
  color: #409eff;
  font-weight: 600;
  border-bottom-color: #409eff;
}

.oa-emp-topbar__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 8px;
  flex-shrink: 0;
  border-left: 1px solid #f0f2f5;
  background: #fff;
}

/* 与后台「应用端」对称：进入管理端 */
.oa-emp-barlink {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  margin-right: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #606266;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
}
.oa-emp-barlink:hover {
  background: #f5f7fa;
  color: #409eff;
}
.oa-emp-tool {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #606266;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.oa-emp-tool:hover {
  background: #f5f7fa;
  color: #303133;
}
.oa-emp-tool-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #f56c6c;
  border-radius: 8px;
  box-sizing: border-box;
}
.oa-emp-userpill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 4px;
  cursor: default;
}
.oa-emp-userpill:hover {
  background: #f5f7fa;
}
.oa-emp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcdfe6, #a8abb0);
  border: 1px solid #e4e7ed;
}
.oa-emp-username {
  font-size: 13px;
  color: #303133;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 侧栏 + 主区 —— */
.oa-emp-row {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.oa-emp-side {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e4e7ed;
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oa-emp-side__cta {
  margin: 0 12px 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #79bbff 0%, #409eff 100%);
  border: 1px solid #337ecc;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(64, 158, 255, 0.25);
}
.oa-emp-side__cta:hover {
  filter: brightness(1.03);
}
a.oa-emp-side__cta {
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.oa-emp-side a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #606266;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.oa-emp-side a:hover {
  color: #409eff;
  background: #ecf5ff;
}
.oa-emp-side a.is-active {
  color: #409eff;
  font-weight: 600;
  background: #ecf5ff;
  border-left-color: #409eff;
}
.oa-emp-side a.oa-emp-side__cta {
  color: #fff;
  font-weight: 600;
  border-left: none;
  background: linear-gradient(180deg, #79bbff 0%, #409eff 100%);
}
.oa-emp-side a.oa-emp-side__cta:hover {
  color: #fff;
  background: linear-gradient(180deg, #79bbff 0%, #409eff 100%);
}

.oa-emp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f0f2f5;
}

@media (max-width: 960px) {
  .oa-emp-side {
    display: none;
  }
  .oa-emp-modwrap {
    max-width: 40vw;
  }
}
