/* 社区活动登记系统 · 网页后台
   风格：银行内部系统，克制、密度高、不花哨。 */

:root {
  --nav: #10304d;
  --nav2: #16405f;
  --brand: #1f4e79;
  --blue: #1a6fd4;
  --blue-soft: #eaf2fd;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --line2: #eef2f7;
  --txt: #1f2733;
  --muted: #6b7787;
  --ok: #1a7f4b;
  --ok-soft: #e9f7ef;
  --warn: #b7791f;
  --warn-soft: #fdf6e3;
  --bad: #c0392b;
  --bad-soft: #fdf0ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 14px;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(150deg, #0e2d47 0%, #1b4d74 46%, #2f6b9b 100%);
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 24, 40, 0.34);
  overflow: hidden;
}

.login-head {
  padding: 30px 32px 22px;
  border-bottom: 1px solid var(--line2);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.login-brand i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--brand);
  display: inline-block;
}

.login-title {
  margin: 14px 0 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.login-body {
  padding: 24px 32px 30px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--txt);
  font-size: 13.5px;
  transition: all 0.14s;
}

.btn:hover {
  border-color: #c8d3e0;
  background: #fafcff;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #17405f;
  border-color: #17405f;
}

.btn-wide {
  width: 100%;
  height: 44px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 6px;
}

.btn-ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.btn-ok:hover {
  background: #156a3f;
  border-color: #156a3f;
}

.btn-danger {
  background: #fff;
  border-color: #e6b8b1;
  color: var(--bad);
}

.btn-danger:hover {
  background: var(--bad-soft);
}

.login-msg {
  min-height: 18px;
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: var(--bad);
  line-height: 1.5;
}

.login-msg.ok {
  color: var(--ok);
}

.login-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: #94a0ae;
  line-height: 1.7;
}

/* 备案号（法规要求首页底部悬挂并链接工信部） */
.icp {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.icp a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.icp a:hover {
  text-decoration: underline;
  opacity: 1;
}

.login-foot .icp {
  color: #a8b3c0;
}

.side-foot .icp {
  margin-top: 8px;
  color: #5f768c;
}

.init-toggle {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--blue);
  cursor: pointer;
  display: inline-block;
}

.init-panel {
  margin-top: 14px;
  padding: 16px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: none;
}

.init-panel.on {
  display: block;
}

.init-panel .field {
  margin-bottom: 12px;
}

.init-panel .field input {
  height: 36px;
}

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

.side {
  width: 212px;
  flex-shrink: 0;
  background: var(--nav);
  color: #cfdbe7;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.side-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-brand b {
  display: block;
  color: #fff;
  font-size: 15.5px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.side-brand span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: #7f9bb5;
  letter-spacing: 0.5px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  color: #b7c9d9;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.14s;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.on {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-left-color: #56a3e0;
  font-weight: 600;
}

.nav-item .ic {
  width: 16px;
  text-align: center;
  opacity: 0.85;
  font-size: 13px;
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d9534f;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}

.side-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.side-foot .who {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.side-foot .role {
  color: #7f9bb5;
  margin-top: 3px;
}

.side-foot .out {
  margin-top: 10px;
  color: #9db4c9;
  cursor: pointer;
  font-size: 12px;
}

.side-foot .out:hover {
  color: #fff;
}

.main {
  flex: 1;
  margin-left: 212px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.topbar .scope {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 9px;
  background: var(--line2);
  border-radius: 20px;
}

.topbar .spacer {
  flex: 1;
}

.topbar .clock {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.view {
  padding: 20px 24px 40px;
  display: none;
}

.view.on {
  display: block;
}

/* ============ 卡片 / 指标 ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
}

.card .k {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card .v {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.card .v small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.card .x {
  margin-top: 6px;
  font-size: 11.5px;
  color: #9aa5b4;
}

.card.alert {
  border-color: #f0cfc9;
  background: #fffbfa;
}

.card.alert .v {
  color: var(--bad);
}

.card.good .v {
  color: var(--ok);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line2);
}

.panel-h h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.panel-h .sub {
  font-size: 12px;
  color: var(--muted);
}

.panel-h .spacer {
  flex: 1;
}

.panel-b {
  padding: 16px;
}

.panel-b.tight {
  padding: 0;
}

/* 迷你柱图 */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 128px;
  padding: 4px 2px 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.bar-stack {
  width: 100%;
  max-width: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.bar-bg {
  position: absolute;
  inset: 0;
  background: #f2f5fa;
  border-radius: 4px 4px 0 0;
}

.bar-fill {
  position: relative;
  background: linear-gradient(180deg, #4d94d8, #1a6fd4);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.bar-lbl {
  font-size: 10.5px;
  color: #9aa5b4;
  white-space: nowrap;
}

.bar-val {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

table.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.tb th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafd;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

table.tb td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
}

table.tb tr:last-child td {
  border-bottom: none;
}

table.tb tbody tr:hover {
  background: #fafcff;
}

table.tb tbody tr.clickable {
  cursor: pointer;
}

table.tb td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.tb td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
}

table.tb tfoot td {
  background: #f8fafd;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.empty-row {
  padding: 40px 0;
  text-align: center;
  color: #9aa5b4;
  font-size: 13px;
}

/* 状态徽标 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.planned {
  background: #eef2f7;
  color: #5d6b7d;
}

.tag.checked {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.completed {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag.approved {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag.rejected {
  background: var(--bad-soft);
  color: var(--bad);
}

.tag.expired,
.tag.cancelled {
  background: #f0f1f3;
  color: #98a1ac;
}

.tag.late {
  background: var(--bad-soft);
  color: var(--bad);
  margin-left: 4px;
}

.tag.web {
  background: #eef4ff;
  color: #2a5d9f;
  margin-left: 4px;
}

/* ============ 筛选栏 ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line2);
  background: #fcfdff;
}

.filters .f {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filters .f > span {
  font-size: 11.5px;
  color: var(--muted);
}

.filters input,
.filters select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  outline: none;
  color: var(--txt);
}

.filters input:focus,
.filters select:focus {
  border-color: var(--blue);
}

.filters .grow {
  flex: 1;
  min-width: 150px;
}

.filters .grow input {
  width: 100%;
}

.filters .acts {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ============ 分页 ============ */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line2);
  font-size: 12.5px;
  color: var(--muted);
}

.pager .spacer {
  flex: 1;
}

/* ============ 抽屉（活动详情） ============ */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 38, 0.42);
  z-index: 90;
  display: none;
}

.mask.on {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 94vw;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.22s ease;
  box-shadow: -18px 0 50px rgba(10, 24, 38, 0.16);
}

.drawer.on {
  transform: translateX(0);
}

.drawer-h {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drawer-h .t {
  font-size: 15px;
  font-weight: 700;
}

.drawer-h .s {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.4px;
}

.drawer-h .x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.drawer-b {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.drawer-f {
  padding: 14px 20px;
  border-top: 1px solid var(--line2);
  background: #fcfdff;
  display: flex;
  gap: 10px;
  align-items: center;
}

.drawer-f .spacer {
  flex: 1;
}

.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 9px 12px;
  font-size: 13px;
  margin-bottom: 18px;
}

.kv .k {
  color: var(--muted);
}

.kv .v {
  word-break: break-all;
  line-height: 1.6;
}

.sec-t {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-t .n {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.metric {
  background: #f8fafd;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.metric .n {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric .l {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.staff-chip {
  font-size: 12.5px;
  padding: 5px 10px;
  background: #f4f7fb;
  border: 1px solid var(--line2);
  border-radius: 14px;
}

.staff-chip b {
  font-weight: 600;
}

.staff-chip span {
  color: var(--muted);
  margin-left: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #f2f5fa;
}

.reason-box {
  background: var(--bad-soft);
  border: 1px solid #f0cfc9;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #8f3126;
  line-height: 1.6;
  margin-bottom: 16px;
}

.audit-form {
  display: none;
  margin-top: 10px;
}

.audit-form.on {
  display: block;
}

.audit-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  outline: none;
}

.audit-form textarea:focus {
  border-color: var(--blue);
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.reason-chip {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}

.reason-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ============ 报表 ============ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line2);
}

.tab {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
}

.tab:hover {
  background: #f4f7fb;
}

.tab.on {
  background: var(--blue-soft);
  border-color: #cfe0f5;
  color: #17457f;
  font-weight: 600;
}

.rpt-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line2);
}

.rpt-head .t {
  font-size: 14px;
  font-weight: 700;
}

.rpt-head .s {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.notes {
  padding: 12px 16px;
  background: #fbfcfe;
  border-top: 1px solid var(--line2);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}

.notes b {
  color: var(--txt);
  font-weight: 600;
}

/* ============ 权限管理 ============ */
.role-sel {
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12.5px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  background: #f8fafd;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.hint b {
  color: var(--txt);
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(18, 32, 46, 0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 200;
  max-width: 76vw;
  text-align: center;
  line-height: 1.5;
}

.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.err {
  background: #b23b30;
}

@media (max-width: 900px) {
  .side {
    width: 60px;
  }
  .side-brand b,
  .side-brand span,
  .nav-item span:not(.ic):not(.nav-badge),
  .side-foot .who,
  .side-foot .role,
  .side-foot .out {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 12px 0;
  }
  .main {
    margin-left: 60px;
  }
  .drawer {
    width: 100%;
  }
}

/* ============ 通用弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 38, 0.42);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.on {
  display: flex;
}
.modal-box {
  width: 380px;
  max-width: 92vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(6, 24, 40, 0.3);
  overflow: hidden;
}
.modal-h {
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
}
.modal-x {
  margin-left: auto;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.modal-b {
  padding: 16px 18px 6px;
}
.modal-b label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 6px;
}
.modal-b label:first-child {
  margin-top: 0;
}
.modal-b input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
}
.modal-b input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}
.modal-msg {
  min-height: 18px;
  margin: 10px 0 4px;
  font-size: 12.5px;
  color: var(--bad);
  line-height: 1.5;
}
.modal-f {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==================== 权限管理（双维度）与机构管理 ==================== */
.subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.subtab {
  padding: 8px 14px;
  font-size: 13.5px;
  color: #6b7787;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}
.subtab:hover {
  color: #2c3e50;
}
.subtab.on {
  color: #12395f;
  border-bottom-color: #12395f;
  font-weight: 600;
}
.ubox {
  display: none;
}
.ubox.on {
  display: block;
}

.row-off td {
  background: #fbfbfc;
  color: #9aa4b1;
}
.code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: #8b97a6;
  margin-left: 6px;
}
.ok-txt {
  color: #1a7f4b;
  font-size: 12.5px;
}
.ops {
  white-space: nowrap;
}
.ops .btn + .btn {
  margin-left: 5px;
}
.addr {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-danger {
  color: #b02a37;
  border-color: #e8bcc1;
}
.btn-danger:hover {
  background: #fdf3f4;
  border-color: #dd9aa1;
}

/* 机构维度：左树右人 */
.split {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.orgtree {
  width: 290px;
  flex: 0 0 290px;
  max-height: 600px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fcfdfe;
}
.orgmembers {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 220px;
  background: #fff;
}
.onode {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #33465c;
}
.onode:hover {
  background: #f1f5fa;
}
.onode.on {
  background: #e8f0fb;
  color: #12395f;
  font-weight: 600;
}
.onode.kid {
  margin-left: 18px;
  font-size: 12.5px;
}
.onode b {
  font-weight: inherit;
}
.fold {
  width: 14px;
  text-align: center;
  color: #9aa8b8;
  font-size: 11px;
  flex: 0 0 14px;
}
.fold.empty {
  opacity: 0.3;
}

.om-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.om-head b {
  font-size: 15px;
  color: #1f3a5f;
}
.om-sub {
  font-size: 12px;
  color: #8b97a6;
  margin-top: 4px;
}
.rgrp {
  margin-bottom: 14px;
}
.rgrp-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #33465c;
  margin-bottom: 6px;
}
.rgrp-h i {
  font-style: normal;
  font-size: 11.5px;
  color: #8b97a6;
  background: #f0f3f7;
  border-radius: 9px;
  padding: 1px 7px;
}
.rgrp-h .btn {
  margin-left: auto;
}
.rgrp-empty {
  font-size: 12.5px;
  color: #b0bac6;
  padding: 6px 0 6px 2px;
}
.rrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.rrow:nth-child(even) {
  background: #fafbfd;
}
.rrow.off {
  opacity: 0.55;
}
.rrow .nm {
  color: #2c3e50;
}
.rrow .nm .mono {
  margin-left: 8px;
  font-size: 11.5px;
  color: #8b97a6;
  font-style: normal;
}
.rrow .bp {
  font-size: 12px;
  color: #7a8794;
}
.rrow .btn {
  margin-left: auto;
}

/* 弹窗表单 */
.form2 {
  display: flex;
  gap: 12px;
}
.form2 > div {
  flex: 1;
  min-width: 0;
}
.form2 select,
.modal-b select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #fff;
  font-size: 13.5px;
  color: #2c3e50;
}
.form2 select:focus,
.modal-b select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}
.tip-line {
  font-size: 12px;
  color: #8b97a6;
  line-height: 1.55;
  padding-top: 8px;
}
.modal-box.wide {
  width: 580px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 13px;
  color: #4a5a6b;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}
.chip input {
  display: none;
}
.chip:hover {
  border-color: #c3d4e6;
}
.chip.on {
  background: #e8f0fb;
  border-color: #a9c7ec;
  color: #12395f;
  font-weight: 600;
}

/* 表格内按钮不换行 */
.tb .btn {
  white-space: nowrap;
}

/* ==================== 抽查核验 ==================== */
.modal-msg.ok {
  color: #1a7f4b;
}
.modal-msg.err {
  color: var(--bad);
}
.tb tr.row-bad td {
  background: #fdf6f7;
}
.modal-b textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: #2c3e50;
  resize: vertical;
  line-height: 1.6;
}
.modal-b textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}

/* 强制删除弹窗：确认勾选行 + 行内小删除按钮 */
.chk-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.chk-line input { width: 14px; height: 14px; }
.btn-xs {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 5px;
  line-height: 22px;
}
