/* =============================================================================
   晋护通 · 运营管理后台 · 设计系统
   风格：深色侧栏 + 浅色工作区，医疗蓝主色，信息密度优先
   ============================================================================= */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;

  --sidebar-bg: #111827;
  --sidebar-bg-2: #0b1220;
  --sidebar-text: #9ca3af;
  --sidebar-text-active: #ffffff;
  --sidebar-active: #1d4ed8;

  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f1f3f5;

  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;

  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #0891b2;
  --info-soft: #ecfeff;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --sidebar-w: 232px;
  --topbar-h: 58px;
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================== 登录页 ============================== */

.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 15% 10%, #1e3a8a 0%, transparent 55%),
    radial-gradient(900px 500px at 85% 90%, #0e7490 0%, transparent 50%),
    linear-gradient(135deg, #0b1220 0%, #111827 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 34px 34px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  flex: none;
}
.brand-logo.sm { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }

.login-brand h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.login-brand p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }

input[type=text], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
textarea { height: auto; padding: 9px 12px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:disabled, select:disabled, textarea:disabled { background: #f9fafb; color: var(--text-3); }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }

.login-hint { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.login-hint p { margin: 0 0 9px; font-size: 12.5px; color: var(--text-2); }
.acct-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.acct-chip {
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.acct-chip:hover { background: #dbeafe; }

/* ============================== 应用外壳 ============================== */

.app-view { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 30;
}

.side-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex: none;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

.nav-group { margin-bottom: 2px; }

.nav-group-title {
  padding: 6px 10px 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #4b5563;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4.5px 10px;
  margin-bottom: 1px;
  border-radius: var(--radius-sm);
  font-size: 12.8px;
  color: var(--sidebar-text);
  cursor: pointer;
  user-select: none;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #e5e7eb; }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-text-active); font-weight: 500; }
.nav-item .ni-icon { width: 17px; text-align: center; font-size: 14px; flex: none; opacity: .92; }
.nav-item .ni-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .ni-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: #fff; background: #dc2626; border-radius: 999px;
}

.side-footer {
  flex: none;
  padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.user-info { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2); flex: none;
}
.user-meta { min-width: 0; }
.user-meta .un { font-size: 13px; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta .ur { font-size: 11.5px; color: #6b7280; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.crumb .cur { color: var(--text); font-weight: 600; font-size: 15px; }
.crumb .sep { color: #d1d5db; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.role-tag {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
}

.content { flex: 1; padding: 20px 22px 40px; min-width: 0; }

/* ============================== 按钮 ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: #f9fafb; border-color: #d1d5db; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

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

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

.btn-success { color: #fff; background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #047857; border-color: #047857; }

.btn-ghost { color: var(--text-2); background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #f3f4f6; color: var(--text); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn-link {
  padding: 0;
  height: auto;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ============================== 卡片 ============================== */

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

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.card-hd h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-hd .sub { font-size: 12.5px; color: var(--text-2); font-weight: 400; margin-left: 8px; }
.card-bd { padding: 16px 18px; }
.card-bd.p0 { padding: 0; }

/* ============================== 筛选栏 ============================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.filter-bar .f-item { display: flex; align-items: center; gap: 7px; }
.filter-bar .f-item > label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.filter-bar input, .filter-bar select { width: 170px; height: 34px; font-size: 13px; }
.filter-bar input.wide { width: 220px; }
.filter-bar .spacer { flex: 1; }

/* ============================== 表格 ============================== */

.table-wrap { overflow-x: auto; }

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

table.table th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-2);
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

table.table tbody tr:hover { background: #fafbfc; }
table.table tbody tr:last-child td { border-bottom: none; }

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

/* 操作列：按钮必须横排，列宽不被内容挤压 */
table.table th.col-actions,
table.table td.col-actions,
table.table th.c-actions,
table.table td.c-actions { white-space: nowrap; text-align: right; }

/* .btn-group 默认允许换行（工具栏需要），但表格操作列一旦换行会把行高撑成两倍 */
table.table td.c-actions .btn-group,
table.table td.col-actions .btn-group { flex-wrap: nowrap; gap: 12px; }

table.table .c-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
table.table .c-actions .btn-link { flex: none; }

.cell-main { font-weight: 500; color: var(--text); }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============================== 标签 ============================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-gray   { color: #4b5563; background: #f3f4f6; border-color: #e5e7eb; }
.tag-blue   { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.tag-green  { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.tag-orange { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.tag-red    { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.tag-purple { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.tag-cyan   { color: #0e7490; background: #ecfeff; border-color: #a5f3fc; }

.dot-status {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ============================== 分页 ============================== */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.pager .pg-info b { color: var(--text); font-weight: 600; }
.pager .pg-list { display: flex; align-items: center; gap: 5px; }

.pg-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.pg-btn:disabled { color: var(--text-3); cursor: not-allowed; background: #f9fafb; }

.pg-size {
  height: 30px;
  width: 88px;
  font-size: 13px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
}

/* ============================== 空态 / 加载 ============================== */

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}
.empty .em-icon { font-size: 34px; margin-bottom: 10px; opacity: .55; }
.empty .em-title { font-size: 14px; color: var(--text-2); margin-bottom: 5px; }

.loading {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}
.spinner {
  display: inline-block;
  width: 17px; height: 17px;
  margin-right: 8px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  margin: 16px;
  padding: 14px 16px;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 13.5px;
}

/* ============================== 统计卡 ============================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  position: relative;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: .75;
}
.stat-card .st-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; position: relative; z-index: 1; }
.stat-card .st-value {
  font-size: 25px; font-weight: 650; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
}
.stat-card .st-foot { margin-top: 7px; font-size: 12px; color: var(--text-3); position: relative; z-index: 1; }
.stat-card .st-unit { font-size: 14px; font-weight: 400; color: var(--text-2); margin-left: 3px; }

.stat-card.blue .st-value { color: var(--primary); }
.stat-card.green .st-value { color: var(--success); }
.stat-card.orange .st-value { color: var(--warning); }
.stat-card.red .st-value { color: var(--danger); }
.stat-card.cyan .st-value { color: var(--info); }

/* ============================== 键值列表 ============================== */

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}
.kv {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13.5px;
}
.kv .k { width: 96px; flex: none; color: var(--text-2); }
.kv .v { flex: 1; min-width: 0; color: var(--text); word-break: break-all; }
.kv .v.strong { font-weight: 600; }

/* ============================== 抽屉 ============================== */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .42);
  z-index: 60;
  opacity: 0;
  transition: opacity .18s;
}
.drawer-mask.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(660px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 61;
  box-shadow: -8px 0 40px rgba(16, 24, 40, .18);
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}
.drawer.show { transform: translateX(0); }
.drawer.wide { width: min(880px, 96vw); }

.drawer-hd {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
}
.drawer-hd .dh-title { font-size: 16px; font-weight: 600; }
.drawer-hd .dh-sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.drawer-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1;
  color: var(--text-2);
  background: none; border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: none;
}
.drawer-close:hover { background: #f3f4f6; color: var(--text); }

.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }

.drawer-ft {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px 22px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.drawer-section { margin-bottom: 22px; }
.drawer-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-light);
}

/* ============================== 弹窗 ============================== */

.modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .48);
  z-index: 80;
  opacity: 0;
  transition: opacity .16s;
}
.modal-mask.show { opacity: 1; }

.modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  transition: transform .18s;
}
.modal.show { transform: translateY(0) scale(1); }
.modal.wide { max-width: 640px; }

.modal-hd { padding: 18px 20px 0; font-size: 15.5px; font-weight: 600; }
.modal-bd { padding: 14px 20px 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.modal-bd .field > span { color: var(--text-2); }
.modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 20px;
  background: #fafbfc;
  border-top: 1px solid var(--border);
}

/* ============================== Toast ============================== */

.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  min-width: 180px;
  max-width: 480px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: #fff;
  background: #1f2937;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .22);
  animation: toastIn .22s ease-out;
  word-break: break-word;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warn { background: var(--warning); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================== Tabs ============================== */

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  background: #fff;
  overflow-x: auto;
}
.tabs::-webkit-scrollbar { height: 0; }

.tab {
  position: relative;
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.tab .tab-count {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: #f3f4f6;
  border-radius: 8px;
  line-height: 16px;
}
.tab.active .tab-count { color: var(--primary); background: var(--primary-soft); }

/* ============================== 图表（纯 CSS） ============================== */

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-fill {
  width: 100%;
  max-width: 44px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height .4s ease;
  position: relative;
}
.bar-fill:hover { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.bar-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.progress {
  height: 6px;
  background: #f1f3f5;
  border-radius: 3px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* ============================== 其他 ============================== */

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.section-title .st-sub { font-size: 12.5px; color: var(--text-2); font-weight: 400; }

.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.one { grid-template-columns: 1fr; }

.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -16px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
}
.tl-item.done::before { background: var(--primary); }
.tl-time { font-size: 12px; color: var(--text-3); }
.tl-text { font-size: 13.5px; margin-top: 2px; }

@media (max-width: 1080px) {
  :root { --sidebar-w: 200px; }
  .content { padding: 16px; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}

/* 详情抽屉内的跳转链接（如「关联档案」） */
.link { color: var(--primary, #1e40af); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
