html, body, #app { height: 100%; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f2f5; }
.layout { height: 100%; }
.aside { background: #001529; display: flex; flex-direction: column; }
.aside .el-menu { border-right: none; flex: 1; overflow-y: auto; }
.logo { height: 52px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.logo-icon { margin-right: 6px; }
.menu-group { padding: 14px 20px 6px; color: #5a6470; font-size: 12px; }
.header { background: #fff; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4e7ed; box-shadow: 0 1px 4px rgba(0,21,41,.08); }
.page-title { font-size: 16px; font-weight: 600; color: #303133; }
.header-right { color: #909399; font-size: 13px; }
.main { padding: 0; background: #f0f2f5; }
.page { padding: 16px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mt12 { margin-top: 12px; }
.mb12 { margin-bottom: 12px; }
.mr8 { margin-right: 8px; }
.stat-card .stat-label { color: #909399; font-size: 13px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.stat-card .stat-sub { color: #c0c4cc; font-size: 12px; }
.chart { height: 260px; width: 100%; }
.sum-line { color: #606266; font-size: 13px; margin-left: 8px; }
.tip { color: #c0c4cc; font-size: 12px; margin-left: 8px; }
.legend { margin-left: 12px; }
.legend .chip { display: inline-block; padding: 2px 10px; border-radius: 3px; margin-right: 8px; font-size: 12px; border: 1px solid rgba(0,0,0,0.06); }
/* 排班表 */
.sched-wrap { overflow: auto; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; }
.sched-table { border-collapse: collapse; width: 100%; }
.sched-table th, .sched-table td { border: 1px solid #e4e7ed; padding: 0; font-size: 12px; text-align: center; }
.sched-table th { background: #f5f7fa; padding: 5px 2px; position: sticky; top: 0; z-index: 2; }
.sched-table th .wk-label { font-weight: 400; color: #909399; font-size: 11px; }
.sched-table th.wk { color: #f56c6c; }
.sched-table th.today { background: #d9ecff; }
.sched-table td.wkbg { background: #fafbfc; }
.sched-table td.staff-cell { position: sticky; left: 0; background: #f5f7fa; min-width: 92px; padding: 6px 8px; z-index: 1; text-align: left; }
.staff-name { font-weight: 600; color: #303133; }
.staff-pos { color: #909399; font-size: 11px; }
.sched-cell { cursor: pointer; height: 34px; line-height: 34px; min-width: 34px; user-select: none; color: #606266; }
.sched-cell:hover { outline: 2px solid #409eff; outline-offset: -2px; }
.cell-day { font-size: 11px; }
.cell-proj { background: #e6f4ff; color: #1677ff; }
.cell-lead { background: #fdf6ec; color: #b88230; font-weight: 600; }
.cell-conflict { background: #fef0f0; color: #f56c6c; font-weight: 600; }
/* 低库存行 */
.el-table tr.low-row > td.el-table__cell { background: #fef0f0 !important; }
.drawer-sub { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-weight: 600; color: #303133; }
.dist-title { font-size: 12px; color: #909399; margin-bottom: 6px; }

/* —— 登录页 —— */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001529 0%, #0b3a5c 55%, #11629c 100%);
}
.login-card {
  width: 360px;
  background: #fff;
  border-radius: 10px;
  padding: 40px 36px 28px;
  box-shadow: 0 18px 50px rgba(0, 10, 30, 0.45);
  text-align: center;
}
.login-logo-icon { font-size: 44px; line-height: 1; }
.login-title { font-size: 20px; margin: 14px 0 4px; color: #10233a; letter-spacing: 1px; }
.login-sub { font-size: 13px; color: #8a94a3; margin: 0 0 22px; }
.login-btn { width: 100%; margin-top: 14px; letter-spacing: 6px; }
.login-tip { font-size: 12px; color: #a8b0bc; margin: 16px 0 0; line-height: 1.6; }
.header-right { display: inline-flex; align-items: center; gap: 16px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: #f4f7fb;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
  color: #10233a;
  outline: none;
}
.user-chip .user-caret { font-size: 12px; color: #8a94a3; }

/* —— 登录密码框与客户端入口 —— */
.login-pwd { margin-top: 12px; }
.login-link { color: #11629c; font-weight: 600; text-decoration: none; }
.to-client {
  color: #11629c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #eef5fb;
  border-radius: 14px;
  padding: 4px 12px;
}

/* —— 员工客户端 —— */
.client-page { min-height: 100vh; background: #f0f2f5; }
.client-header {
  height: 56px;
  background: #001529;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  color: #fff;
}
.client-logo { font-size: 16px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.client-menu { flex: 1; background: transparent; border-bottom: none; }
.client-menu .el-menu-item { color: #a6adb4; height: 56px; line-height: 56px; border-bottom: 2px solid transparent; }
.client-menu .el-menu-item.is-active { color: #fff; border-bottom-color: #409eff; background: transparent; }
.client-menu .el-menu-item:hover { background: transparent; color: #fff; }
.client-user { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: #c6cdd5; white-space: nowrap; }
.client-main { padding: 14px; max-width: 1200px; margin: 0 auto; }
