/* ===== 安全督导后台 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #C8102E;
  --red-dark: #a00d24;
  --navy: #003366;
  --navy-deep: #0a2540;
  --gold: #E8A33D;
  --green: #52c41a;
  --blue: #1890ff;
  --text: #2c3e50;
  --text-sub: #7a8a99;
  --border: #e4e9ef;
  --bg: #f0f3f7;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ================= 登录页 ================= */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #123e66 100%);
}

.login-card {
  width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 44px 40px 36px;
  box-shadow: 0 18px 50px rgba(0, 20, 40, 0.45);
  text-align: center;
}

.login-logo { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.login-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.login-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 14px;
  letter-spacing: 1px;
}

.login-sub { font-size: 12px; color: var(--text-sub); margin: 8px 0 30px; }

.login-card .field { text-align: left; margin-bottom: 18px; }

.login-card .field label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.login-card .field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.login-card .field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.field-inline { display: flex; align-items: center; justify-content: space-between; }

.login-card .field .cb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-sub);
  cursor: pointer;
  margin-bottom: 0;
}
.login-card .field .cb input { width: 12px; height: 12px; accent-color: var(--red); cursor: pointer; }

.login-tip { margin-top: 18px; font-size: 12px; color: #b3bcc6; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { opacity: .9; }
.btn-default { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-default:hover { border-color: #c2ccd8; background: #f8fafc; }
.btn-danger { background: #fff; color: var(--red); border: 1px solid rgba(200, 16, 46, 0.35); }
.btn-danger:hover { background: rgba(200, 16, 46, 0.05); }
.btn-success { background: var(--green); color: #fff; }
.btn-block { width: 100%; height: 44px; font-size: 15px; letter-spacing: 8px; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.btn-link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 13px; padding: 2px 6px; font-family: inherit; }
table.data .ops .btn-link[disabled], .btn-link[disabled] { color: #bcc4cf; cursor: not-allowed; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }
.btn-link.warn { color: var(--gold); }

/* ================= 主框架 ================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #b8c7d9;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; display: block; }

.menu { flex: 1; overflow-y: auto; padding: 10px 0; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s;
  font-size: 14.5px;
  user-select: none;
}

.menu-item:hover { background: rgba(255, 255, 255, 0.06); }

.menu-item.active {
  background: rgba(200, 16, 46, 0.22);
  border-left-color: var(--red);
  color: #fff;
  font-weight: 600;
}

.menu-item .mi-icon { font-size: 17px; width: 20px; text-align: center; }

.menu-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 8px 0; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 58px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 30, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-size: 17px; font-weight: 700; color: var(--navy); }

.topbar-user { display: flex; align-items: center; gap: 16px; }

.topbar-username { font-size: 13.5px; color: var(--text-sub); }
.topbar-username::before { content: "👤 "; }

.topbar-logout { color: var(--red); font-size: 13.5px; cursor: pointer; text-decoration: none; }
.topbar-logout:hover { text-decoration: underline; }

.content { padding: 24px 28px; flex: 1; }

/* ================= 面板 / 卡片 ================= */
.panel {
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0, 30, 60, 0.05);
  margin-bottom: 20px;
}

/* 组织架构管理页面内嵌的 position / user 子页面弱化成内容区 */
#co-body > .panel {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}
#co-body > .panel > .panel-head {
  padding: 0 0 16px 0;
  margin-bottom: 0;
}
#co-body > .panel > .panel-head .panel-title::before { display: none; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title { font-size: 15.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 4px; height: 16px; background: var(--red); border-radius: 2px; display: inline-block; }

.panel-head-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 批量导入弹窗 */
.import-row { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; flex-wrap: wrap; }
.import-file { flex: 1; min-width: 220px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }
.import-result { margin-top: 10px; }
.import-summary { padding: 10px 12px; background: #eef6ee; border: 1px solid #bfe3bf; border-radius: 8px; color: #1f7a1f; font-size: 13.5px; }
.import-errs { margin-top: 10px; padding: 10px 12px; background: #fdeeee; border: 1px solid #f3c4c4; border-radius: 8px; }
.import-errs-title { font-weight: 600; color: #c0392b; margin-bottom: 6px; }
.import-errs ul { margin: 0; padding-left: 18px; }
.import-errs li { font-size: 12.5px; color: #a93226; line-height: 1.7; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 30, 60, 0.05);
  border-top: 4px solid var(--navy);
}

.stat-card.c-red { border-top-color: var(--red); }
.stat-card.c-gold { border-top-color: var(--gold); }
.stat-card.c-green { border-top-color: var(--green); }
.stat-card.c-blue { border-top-color: var(--blue); }

.stat-num { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-card.c-red .stat-num { color: var(--red); }
.stat-card.c-gold .stat-num { color: #c47f1d; }
.stat-card.c-green .stat-num { color: var(--green); }
.stat-card.c-blue .stat-num { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* ================= 筛选区 ================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.filters input[type="text"],
.filters input[type="date"],
.filters select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

.filters input:focus, .filters select:focus { border-color: var(--blue); }
.filters input[type="text"] { width: 190px; }

/* ================= 站点快捷导出 ================= */
.station-export-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.station-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.station-export-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.station-export-tip {
  font-size: 12px;
  color: #8a94a6;
}
.station-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.station-export-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
}
.station-export-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-export-company {
  font-size: 11.5px;
  color: #8a94a6;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-export-row .btn { flex-shrink: 0; }

/* ================= 导出站点选择弹窗 ================= */
.station-pick-list { max-height: 420px; overflow-y: auto; }
.station-pick-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.station-pick-all:hover { opacity: .92; }
.station-pick-all .pick-hint { font-size: 12px; font-weight: 400; opacity: .85; }
.station-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.station-pick-row:hover { border-color: var(--red); background: rgba(200, 16, 46, 0.04); }
.station-pick-row .pick-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.station-pick-row .pick-meta { font-size: 12px; color: #8a94a6; }
.station-pick-row .pick-btn { flex-shrink: 0; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data th {
  background: #f5f7fa;
  color: #5a6a7a;
  font-weight: 600;
  text-align: left;
  padding: 11px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

table.data td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}

table.data tbody tr:hover { background: #fafbfd; }
table.data td.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .ops { white-space: nowrap; }
table.data .ops .btn-link { margin-right: 4px; }

.empty {
  text-align: center;
  color: #b3bcc6;
  padding: 46px 0;
  font-size: 13.5px;
}

/* ================= 徽章 ================= */
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: nowrap;
}

.badge.green { color: var(--green); background: rgba(82, 196, 26, 0.1); }
.badge.blue { color: var(--blue); background: rgba(24, 144, 255, 0.1); }
.badge.gray { color: #98a4b0; background: #f0f2f5; }
.badge.red { color: var(--red); background: rgba(200, 16, 46, 0.08); }
.badge.gold { color: #c47f1d; background: rgba(232, 163, 61, 0.14); }
.badge.navy { color: var(--navy); background: rgba(0, 51, 102, 0.08); }

/* ================= 分页 ================= */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.pager-info { font-size: 12.5px; color: var(--text-sub); }

.pager-btns { display: flex; gap: 6px; }

.page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 0 8px;
  font-family: inherit;
}

.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 45, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .15s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 12px;
  width: 560px;
  max-width: 96vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 46px rgba(0, 20, 40, 0.35);
  animation: slideUp .18s;
}

.modal.wide { width: 760px; }

@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--navy); }

.modal-close {
  border: none;
  background: none;
  font-size: 22px;
  color: #a5b0bc;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.modal-close:hover { color: var(--red); }

.modal-body { padding: 22px; overflow-y: auto; }

.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-error {
  background: rgba(200, 16, 46, 0.06);
  color: var(--red);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.confirm-body { padding: 26px 24px 6px; text-align: center; }
.confirm-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.confirm-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.confirm-msg { font-size: 13.5px; color: var(--text-sub); line-height: 1.7; }
.confirm-msg b { color: var(--red); }

/* ================= 表单 ================= */
.form-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.form-row > label.form-label {
  width: 110px;
  flex-shrink: 0;
  text-align: right;
  padding: 9px 14px 0 0;
  font-size: 13.5px;
  color: #5a6a7a;
}

.form-row .form-ctrl { flex: 1; min-width: 0; }

.form-ctrl input[type="text"],
.form-ctrl input[type="password"],
.form-ctrl input[type="number"],
.form-ctrl input[type="date"],
.form-ctrl select,
.form-ctrl textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.form-ctrl textarea { min-height: 72px; resize: vertical; }
.form-ctrl input:focus, .form-ctrl select:focus, .form-ctrl textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.08);
}

.form-ctrl input.invalid, .form-ctrl select.invalid { border-color: var(--red); }

.form-hint { font-size: 12px; color: #a5b0bc; margin-top: 5px; line-height: 1.6; }
.form-hint.warn { color: #c47f1d; }

.req::after { content: " *"; color: var(--red); }

/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccd4dc;
  border-radius: 26px;
  transition: background .18s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch-text { margin-left: 10px; font-size: 13px; color: var(--text-sub); vertical-align: middle; }

/* 详情展示 */
.detail-grid { display: grid; grid-template-columns: 110px 1fr; row-gap: 0; font-size: 13.5px; }
.detail-grid dt {
  color: #8a97a5;
  padding: 9px 14px 9px 0;
  text-align: right;
  border-bottom: 1px dashed #eef1f5;
}
.detail-grid dd { padding: 9px 0; border-bottom: 1px dashed #eef1f5; color: var(--text); word-break: break-all; }
.detail-section {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 8px 14px;
  border-radius: 7px;
  margin: 18px 0 8px;
}
.detail-section:first-child { margin-top: 0; }

/* 反馈率进度条 */
.rate-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-track {
  flex: 1;
  height: 8px;
  background: #edf0f4;
  border-radius: 6px;
  overflow: hidden;
  min-width: 80px;
}

.rate-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.rate-num { font-size: 12.5px; color: var(--text-sub); width: 52px; text-align: right; }

/* ================= Toast ================= */
#toast-root {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  background: #fff;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 13.5px;
  box-shadow: 0 6px 22px rgba(0, 20, 40, 0.18);
  border-left: 4px solid var(--blue);
  animation: slideUp .2s;
  max-width: 80vw;
}

.toast.success { border-left-color: var(--green); color: #389e0d; }
.toast.error { border-left-color: var(--red); color: var(--red); }
.toast.info { border-left-color: var(--blue); color: var(--blue); }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { width: 62px; }
  .brand-text, .menu-item .mi-text { display: none; }
  .menu-item { justify-content: center; padding: 14px 0; }
  .brand { justify-content: center; padding: 18px 0; }
  .content { padding: 16px; }
  .form-row { flex-direction: column; }
  .form-row > label.form-label { width: auto; text-align: left; padding: 0 0 6px; }
}

/* ===== 部门管理·组织架构树 ===== */
.tree-branch { color: #b3bcc6; margin-right: 4px; font-size: 12px; }
.tree-icon { margin-right: 4px; }
.tree-station td { background: #fafbfc; color: #6b7683; }
.tree-station .station-dot { margin-right: 3px; }
.tree-station-sub { color: #b3bcc6; font-size: 12px; margin-left: 6px; }
.muted { color: #c0c8d0; }

/* ===== 详情页照片缩略图（与小程序端对齐） ===== */
.photo-block { margin: 4px 0 2px; }
.photo-label { font-size: 12px; color: #8a94a6; margin: 8px 0 4px; font-weight: 600; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.photo-thumb {
  width: 96px; height: 96px; object-fit: cover; border-radius: 8px;
  border: 1px solid #e5e9f0; cursor: pointer; background: #f3f5f8;
  transition: transform .12s ease, box-shadow .12s ease;
}
.photo-thumb:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(15,42,90,.18); }
.photo-empty { font-size: 12px; color: #b3bcc6; padding: 6px 0; }

/* 照片预览弹窗 */
.img-preview { text-align: center; padding: 6px; }
.img-preview-img { max-width: 100%; max-height: 70vh; border-radius: 8px; box-shadow: 0 6px 22px rgba(15,42,90,.25); }

/* 管理员徽章（紫色） */
.badge.purple { background: #6f42c1; color: #fff; }

/* ================= 用户管理·组织架构树 ================= */
.org-tree { margin-top: 4px; }

.org-node {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 9px;
  padding: 13px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.org-node:hover { background: #fafbfd; }
.org-node.dept { border-left: 5px solid var(--navy); }
.org-node.lead { border-left: 5px solid var(--red); background: #fff5f6; }
.org-node.group { margin-left: 26px; border-left: 5px solid #1E6FD9; }
.org-node.station { margin-left: 52px; border-left: 5px solid var(--gold); }

.org-arrow { width: 18px; font-size: 13px; color: #9aa6b2; flex-shrink: 0; }
.org-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--navy); }
.org-node.group .org-name { color: #1E6FD9; }
.org-node.station .org-name { color: #b9791f; font-weight: 500; }
.org-count { font-size: 12.5px; color: #9aa6b2; font-weight: 400; }

.org-user-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 10px;
  gap: 14px;
}
.org-user-card.station-user { margin-left: 52px; }
.org-user-card.disabled { opacity: 0.55; background: #f7f8fa; }

.ou-main { width: 150px; flex-shrink: 0; }
.ou-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.ou-phone { font-size: 12.5px; color: #9aa6b2; margin-top: 3px; }

.ou-meta { flex: 1; min-width: 0; }
.ou-meta .meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.ou-meta .meta-line.labels { margin-bottom: 0; }

.meta-tag { font-size: 12px; padding: 3px 10px; border-radius: 14px; white-space: nowrap; }
.meta-tag.dept { color: var(--navy); background: rgba(0, 51, 102, 0.08); }
.meta-tag.position { color: var(--red); background: rgba(200, 16, 46, 0.07); }
.meta-tag.station { color: #b9791f; background: rgba(232, 163, 61, 0.12); }

.ou-ops { flex-shrink: 0; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.ou-ops .btn-link { margin-left: 2px; }

@media (max-width: 900px) {
  .org-user-card { flex-wrap: wrap; }
  .ou-main { width: 100%; }
  .ou-ops { width: 100%; justify-content: flex-start; margin-top: 4px; }
}

/* ================= 公司根节点（部门/职位/用户/公司管理树） ================= */
.tree-company { background: rgba(0, 51, 102, 0.06); cursor: pointer; }
.tree-company:hover { background: rgba(0, 51, 102, 0.11); }
.tree-caret { display: inline-block; width: 18px; color: var(--navy); font-weight: 700; }
.tree-icon { margin-right: 2px; }
.tree-station-row .tree-branch { color: #9aa6b2; }

/* 合并页分组头（加油站序列 / 部门） */
.tree-group { background: rgba(30, 111, 217, 0.10); }
.tree-group td { padding: 8px 12px; font-weight: 600; color: var(--navy); border-top: 2px solid var(--navy); }
.tree-group .group-icon { margin-right: 6px; }
.tree-group .btn-link { margin-left: 10px; font-weight: 400; }

/* 部门行可折叠 */
.tree-dept-row { cursor: pointer; }
.tree-dept-row:hover { background: #fafbfd; }

/* 部门下人员卡片在表格中的适配 */
.tree-user-row td { padding: 8px 12px 8px 38px; background: #fff; }
.tree-user-row .co-user-card { margin-bottom: 6px; }

/* 用户组织架构树顶层「龙禹黑龙江公司」节点 */
.org-node.company-root {
  background: rgba(0, 51, 102, 0.07);
  border-left: 3px solid var(--navy);
  font-size: 15px;
  padding: 11px 12px;
  margin-bottom: 6px;
}
.org-node.company-root .org-arrow { color: var(--navy); }
.org-node.company-root .org-name { font-weight: 800; }

/* ================= 数据概览看板 ================= */
.rect-grid { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 2px 6px; }
.rect-block {
  flex: 1; min-width: 320px;
  background: #fafbfc; border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.rect-block-title { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 14px; }
.rect-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.rect-card {
  flex: 1; min-width: 110px; border-radius: 10px;
  padding: 12px 10px; text-align: center; border: 1px solid transparent;
}
.rect-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.rect-label { font-size: 12.5px; margin-top: 4px; color: #5a6b7b; }
.rect-card.done { background: rgba(82, 196, 26, 0.1); border-color: rgba(82, 196, 26, 0.3); }
.rect-card.done .rect-num { color: #3a9e12; }
.rect-card.doing { background: rgba(232, 163, 61, 0.12); border-color: rgba(232, 163, 61, 0.35); }
.rect-card.doing .rect-num { color: #cf8a1f; }
.rect-card.todo { background: rgba(200, 16, 46, 0.08); border-color: rgba(200, 16, 46, 0.25); }
.rect-card.todo .rect-num { color: var(--red); }
.rect-card.total { background: #eef2f7; border-color: var(--border); }
.rect-card.total .rect-num { color: var(--navy); }

/* 整改汇总条：站点数 / 问题数 / 整改比例 */
.rect-summary {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding: 10px 12px;
  background: #f5f7fa; border: 1px solid var(--border);
  border-radius: 8px;
}
.rect-summary .rs-item {
  font-size: 13px; color: #4a5568;
  padding: 4px 8px; border-radius: 6px;
  background: #fff; border: 1px solid #e2e8f0;
}
.rect-summary .rs-item b { color: var(--navy); font-size: 15px; margin-right: 2px; }

