/* 拣货单处理工具 · 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  background: #f3f5f9;
  color: #2b3440;
  min-height: 100vh;
}

/* ---------- 通用 ---------- */
.隐藏 { display: none !important; }
.按钮 {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid #c9d2e0;
  border-radius: 8px;
  background: #fff;
  color: #37474f;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  line-height: 1.4;
}
.按钮:hover { border-color: #2f6fed; color: #2f6fed; }
.按钮-主 {
  background: linear-gradient(135deg, #2f6fed, #3a8dff);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(47, 111, 237, .25);
}
.按钮-主:hover { color: #fff; filter: brightness(1.05); }
.按钮:disabled { opacity: .45; cursor: not-allowed; }

.提示 {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.提示-错误 { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.提示-说明 { background: #eef4ff; color: #2f6fed; border: 1px solid #cdddfd; }
.提示-成功 { background: #e9f9ef; color: #1e8e4e; border: 1px solid #bfe8cf; }
/* 醒目警告：未配置数据库时禁止使用工具 */
.提示-警告 {
  background: #fff3f2;
  color: #a4262c;
  border: 2px solid #f0b4ae;
  border-left: 8px solid #d13438;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(209, 52, 56, .14);
}
.提示-警告 a { color: #a4262c; font-weight: 700; text-decoration: underline; }
.提示-警告-说明 {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #8a2318;
  line-height: 1.6;
}
.上传区.禁用 { pointer-events: none; opacity: .55; cursor: not-allowed; }

/* ---------- 登录页 ---------- */
.登录背景 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d2b53 0%, #2f6fed 60%, #4aa3ff 100%);
  padding: 20px;
}
.登录卡片 {
  width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 18px 50px rgba(10, 30, 70, .35);
}
.登录卡片.宽卡 { width: 460px; }
.登录logo {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #1d2b53;
  letter-spacing: 2px;
}
.登录logo img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.登录副题 {
  text-align: center;
  color: #8b98ab;
  font-size: 13px;
  margin: 8px 0 26px;
  line-height: 1.6;
}
.登录表单 .表单项 { margin-bottom: 16px; }

.表单项 { margin-bottom: 16px; }
.表单项 label {
  display: block;
  font-size: 13px;
  color: #5a6a7e;
  margin-bottom: 6px;
}
.表单项 input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border .15s;
  background: #fbfcfe;
}
.表单项 input:focus { border-color: #2f6fed; background: #fff; }
.表单项.宽 { margin-bottom: 18px; }
.表单项.双列 { display: flex; gap: 14px; }
.表单项.双列 > div { flex: 1; }

/* ---------- 顶部栏 ---------- */
.顶部栏 {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.顶部栏-logo { font-size: 18px; font-weight: 700; color: #1d2b53; }
.顶部栏-副题 { font-size: 14px; color: #8b98ab; margin-left: 8px; }
.顶部栏-右 { display: flex; align-items: center; gap: 16px; }
.用户称呼 { color: #5a6a7e; font-size: 14px; }
a.用户称呼 {
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
a.用户称呼:hover { background: #eef4ff; color: #2f6fed; }
.退出 {
  color: #2f6fed;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #c9d2e0;
  padding: 6px 14px;
  border-radius: 8px;
}
.退出:hover { background: #eef4ff; }

/* ---------- 主体卡片 ---------- */
.主体 { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.卡片 {
  background: #fff;
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, .08);
  margin-bottom: 22px;
}
.卡片-标题 { font-size: 20px; color: #1d2b53; margin-bottom: 8px; }
.卡片-说明 { color: #8b98ab; font-size: 14px; margin-bottom: 24px; }
.操作行 { display: flex; gap: 12px; margin-top: 22px; }

/* ---------- 上传区 ---------- */
.上传区 {
  border: 2px dashed #c3cfe0;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: #fbfcfe;
}
.上传区:hover, .上传区.拖拽 {
  border-color: #2f6fed;
  background: #eef4ff;
}
.上传提示 { color: #7c8aa0; font-size: 14px; word-break: break-all; }

/* ---------- 处理中遮罩 ---------- */
.遮罩 {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 60, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.加载卡片 {
  background: #fff;
  border-radius: 16px;
  padding: 46px 60px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(10, 30, 70, .35);
}
.加载环 {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border: 5px solid #e2ebff;
  border-top-color: #2f6fed;
  border-radius: 50%;
  animation: 旋转 0.9s linear infinite;
}
@keyframes 旋转 { to { transform: rotate(360deg); } }
.加载文字 { font-size: 17px; font-weight: 600; color: #1d2b53; }
.加载细节 { margin-top: 10px; color: #8b98ab; font-size: 13px; min-height: 18px; }

/* ---------- 结果 ---------- */
.结果 { text-align: center; }
.结果 { padding: 40px 34px; }
.结果图标 {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.结果图标.完成 { background: #e9f9ef; color: #1e8e4e; }
.结果图标.失败 { background: #fdecec; color: #c0392b; }
.结果文字 { font-size: 16px; color: #37474f; margin-bottom: 8px; line-height: 1.7; }
.结果 .操作行 { justify-content: center; }

/* ---------- 侧边栏 / 布局 ---------- */
.布局 { display: flex; min-height: 100vh; align-items: stretch; }
.侧边栏 {
  width: 220px;
  flex: 0 0 220px;
  background: #1d2b53;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  padding: 20px 0 24px;
  overflow-y: auto;
}
.侧边栏-品牌 { display: flex; align-items: center; gap: 10px; padding: 0 18px 22px; }
.侧边栏-品牌 img {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff;
}
.侧边栏-名称 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.侧边栏-小字 { color: #8a9ab5; font-size: 11px; margin-top: 4px; }
.侧边栏-导航 { display: flex; flex-direction: column; }
.侧边栏-分组 {
  color: #7e8ca8;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 16px 20px 8px;
}
.侧边栏-项 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  color: #cfd8e6;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}
.侧边栏-项:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.侧边栏-项.激活 {
  background: rgba(47, 111, 237, .22);
  border-left-color: #4aa3ff;
  color: #fff;
  font-weight: 600;
}
.侧边栏-项.禁用 { color: #6b7890; cursor: default; }
.侧边栏-项.禁用:hover { background: transparent; color: #6b7890; }
.侧边栏-标签 {
  font-size: 11px;
  color: #8a9ab5;
  border: 1px solid #3a4a6b;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.布局-主 { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.字段说明 { font-size: 12px; color: #98a4b5; margin-top: 6px; }

/* ---------- 管理员设置 ---------- */
.搜索行 { display: flex; gap: 10px; margin: 18px 0 12px; }
.搜索行 input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5dce6;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.搜索行 .按钮 { height: 42px; }
.搜索结果 { margin-top: 6px; }
.用户行 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fbfcfe;
}
.用户行-信息 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.用户行-姓名 { font-size: 14px; font-weight: 600; color: #23324a; }
.用户行-手机 { font-size: 13px; color: #6b7a90; }
.角色标签 {
  font-size: 12px;
  color: #6b7a90;
  background: #f0f3f7;
  border-radius: 6px;
  padding: 2px 8px;
}
.角色标签.超管 { color: #b26b00; background: #fff5e3; }
.角色标签.管理员 { color: #1f6fd0; background: #eef5ff; }
.角色标签.停用 { color: #c0392b; background: #fdeeec; }
.搜索空 { color: #9aa7b8; font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------- 超管首登步骤 ---------- */
.步骤 { margin-top: 6px; }
.步骤标题 {
  font-size: 16px;
  font-weight: 700;
  color: #1d2b53;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
}
