/* =========================================================
   宇电绩效系统 - 管理员后台（独立界面，深蓝侧边栏）
   ========================================================= */
:root {
  --adm-bg: #f0f2f5;
  --adm-card: #fff;
  --adm-text: #1f2329;
  --adm-text2: #646a73;
  --adm-text3: #8f959e;
  --adm-line: #e5e6eb;
  --adm-blue: #3370ff;
  --adm-blue-weak: #eef3ff;
  --adm-green: #00b42a;
  --adm-green-weak: #e8ffea;
  --adm-orange: #ff7d00;
  --adm-orange-weak: #fff7e8;
  --adm-red: #f53f3f;
  --adm-red-weak: #ffece8;
  --adm-side: #1d3a6e;
  --adm-side-active: #2b5aa8;
  --adm-radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px; color: var(--adm-text); background: var(--adm-bg); line-height: 1.6;
}
.hidden { display: none !important; }
a { text-decoration: none; color: inherit; }

/* ===== 顶部栏 ===== */
.adm-top {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--adm-line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.adm-top-left { display: flex; align-items: center; gap: 12px; }
.adm-logo { font-size: 17px; font-weight: 600; color: var(--adm-blue); }
.adm-company { font-size: 13px; color: var(--adm-text2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top-right { display: flex; align-items: center; gap: 16px; }
.adm-back { font-size: 13px; color: var(--adm-blue); }
.adm-mail { cursor: pointer; color: var(--adm-text2); font-size: 16px; }
.adm-user { position: relative; display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.adm-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--adm-blue);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.adm-caret { color: var(--adm-text3); font-size: 11px; }
.adm-dropdown {
  position: absolute; right: 0; top: 36px; width: 190px; background: #fff;
  border: 1px solid var(--adm-line); border-radius: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.14);
  padding: 6px 0; display: none; z-index: 90;
}
.adm-dropdown.open { display: block; }
.adm-dropdown a, .adm-dd-lang {
  display: block; padding: 9px 16px; font-size: 13px; color: var(--adm-text); cursor: pointer;
}
.adm-dropdown a:hover { background: #f7f8fa; }
.adm-dropdown .dd-strong { font-weight: 600; color: var(--adm-blue); }
.adm-dd-head {
  padding: 8px 16px; font-size: 12px; color: var(--adm-text3);
  border-bottom: 1px solid var(--adm-line); margin-bottom: 4px;
}

/* ===== 主体布局 ===== */
.adm-body { padding-top: 52px; min-height: 100%; }
.adm-side {
  position: fixed; top: 52px; bottom: 0; left: 0; width: 168px; z-index: 50;
  background: var(--adm-side); overflow-y: auto; padding-bottom: 30px;
}
.adm-side-hamburger {
  color: #fff; font-size: 18px; padding: 12px 18px; cursor: pointer; opacity: .85;
}
.adm-nav a {
  display: flex; align-items: center; gap: 9px; padding: 11px 18px;
  color: rgba(255,255,255,.82); font-size: 13.5px; cursor: pointer;
  border-left: 3px solid transparent;
}
.adm-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-nav a.active {
  background: var(--adm-side-active); color: #fff; border-left-color: var(--adm-blue); font-weight: 500;
}
.adm-nav .adm-nav-icon { width: 16px; text-align: center; opacity: .9; }
.adm-nav .adm-nav-caret { margin-left: auto; font-size: 10px; opacity: .7; }
.adm-nav .adm-nav-sub { padding-left: 40px; font-size: 13px; }

.adm-main { margin-left: 168px; padding: 22px 26px 40px; min-height: calc(100vh - 52px); }
.adm-main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.adm-main-head h1 { font-size: 21px; font-weight: 600; margin: 0; }
.adm-head-right { font-size: 13px; color: var(--adm-text2); }

/* ===== 卡片 ===== */
.adm-card {
  background: var(--adm-card); border-radius: var(--adm-radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.adm-card-title {
  display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; margin: 0 0 16px;
}
.adm-card-title .adm-badge {
  width: 22px; height: 22px; border-radius: 50%; background: var(--adm-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.adm-card-title .adm-badge.purple { background: #722ed1; }

/* ===== 状态信息行 ===== */
.adm-status { display: flex; flex-direction: column; gap: 16px; }
.adm-status-row { display: flex; align-items: flex-start; gap: 14px; font-size: 13.5px; }
.adm-status-row > label { width: 96px; color: var(--adm-text2); flex-shrink: 0; }
.adm-status-row > div { flex: 1; }
.adm-status-row .adm-link { color: var(--adm-blue); cursor: pointer; margin-left: 10px; }
.adm-status-sub { color: var(--adm-text2); margin-top: 5px; }
.adm-status-sub .adm-link { margin-left: 14px; }

/* ===== 表格 ===== */
.adm-table-wrap { overflow-x: auto; }
table.adm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.adm-tbl th, table.adm-tbl td {
  padding: 9px 12px; border-bottom: 1px solid var(--adm-line); text-align: left; white-space: nowrap;
}
table.adm-tbl th { background: #fafbfc; color: var(--adm-text2); font-weight: 500; font-size: 12px; }
table.adm-tbl tr:hover td { background: #fafbfc; }
table.adm-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table-actions { display: flex; gap: 8px; }

/* ===== 控件 ===== */
.adm-btn {
  border: 1px solid var(--adm-line); background: #fff; color: var(--adm-text);
  border-radius: 6px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.adm-btn:hover { border-color: var(--adm-blue); color: var(--adm-blue); }
.adm-btn.primary { background: var(--adm-blue); border-color: var(--adm-blue); color: #fff; }
.adm-btn.primary:hover { background: #245bdb; color: #fff; }
.adm-btn.danger { color: var(--adm-red); border-color: #ffccc7; }
.adm-btn.sm { padding: 3px 10px; font-size: 12px; }
.adm-input {
  border: 1px solid var(--adm-line); border-radius: 6px; padding: 6px 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--adm-text);
}
.adm-input:focus { outline: none; border-color: var(--adm-blue); }
.adm-select {
  border: 1px solid var(--adm-line); border-radius: 6px; padding: 6px 9px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--adm-text);
}
.adm-form-row { margin-bottom: 14px; }
.adm-form-row > label { display: block; font-size: 13px; color: var(--adm-text2); margin-bottom: 6px; }
.adm-check { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; margin-bottom: 9px; }
.adm-check input { width: 15px; height: 15px; accent-color: var(--adm-blue); }
.adm-radio-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.adm-radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.adm-radio-row input { width: 15px; height: 15px; accent-color: var(--adm-blue); }

/* ===== 统计块 ===== */
.adm-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 18px; }
.adm-stat {
  background: #fff; border-radius: var(--adm-radius); padding: 16px 18px;
}
.adm-stat-num { font-size: 24px; font-weight: 600; color: var(--adm-blue); line-height: 1.3; }
.adm-stat-label { font-size: 12px; color: var(--adm-text3); margin-top: 2px; }

/* ===== 提示 ===== */
.adm-tag {
  display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px;
  background: #f2f3f5; color: var(--adm-text2);
}
.adm-tag.blue { background: var(--adm-blue-weak); color: var(--adm-blue); }
.adm-tag.green { background: var(--adm-green-weak); color: var(--adm-green); }
.adm-tag.orange { background: var(--adm-orange-weak); color: var(--adm-orange); }
.adm-tag.red { background: var(--adm-red-weak); color: var(--adm-red); }
.adm-empty { text-align: center; color: var(--adm-text3); padding: 36px 20px; font-size: 13px; }
.adm-loading { text-align: center; color: var(--adm-text3); padding: 60px 0; font-size: 13px; }
.adm-note { font-size: 12px; color: var(--adm-text3); margin-top: 8px; line-height: 1.6; }

/* ===== 流程配置三步骤条 ===== */
.adm-steps { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.adm-step { display: flex; align-items: center; font-size: 13px; color: var(--adm-text3); }
.adm-step-num {
  width: 22px; height: 22px; border-radius: 50%; background: #e5e6eb; color: var(--adm-text2);
  display: flex; align-items: center; justify-content: center; font-size: 12px; margin-right: 7px;
}
.adm-step.on { color: var(--adm-blue); font-weight: 500; }
.adm-step.on .adm-step-num { background: var(--adm-blue); color: #fff; }
.adm-step.done { color: var(--adm-text2); }
.adm-step.done .adm-step-num { background: var(--adm-green); color: #fff; }
.adm-step-sep { width: 54px; height: 1px; background: var(--adm-line); margin: 0 14px; }

/* ===== Toast ===== */
.adm-toast {
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 9px 18px;
  border-radius: 6px; font-size: 13px; z-index: 200;
}

@media (max-width: 860px) {
  .adm-side { transform: translateX(-100%); transition: transform .25s; }
  .adm-side.open { transform: translateX(0); }
  .adm-main { margin-left: 0; padding: 16px; }
  .adm-company { display: none; }
}
