/* 家泰养老管理系统 - 增量样式
   复用上级 css/style.css 的变量与组件，此处只补缺失部分 */

html, body { height: 100%; }
body.nh { background: var(--bg); }

/* 页面头 */
.nh-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.nh-page-head .nh-page-title { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.nh-page-head .nh-page-desc { font-size: .88rem; color: var(--text-3); margin-top: 2px; }
.nh-page-head .nh-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 工具条 */
.nh-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 12px 14px; margin-bottom: 16px;
}
.nh-toolbar .form-input, .nh-toolbar .form-select { max-width: 200px; padding: 8px 12px; font-size: .92rem; }
.nh-toolbar .nh-toolbar-right { margin-left: auto; display: flex; gap: 8px; }

/* 数值列 */
td.nh-num, th.nh-num { text-align: right; font-variant-numeric: tabular-nums; }

/* 空态与加载 */
.nh-empty, .nh-loading {
  padding: 42px 16px; text-align: center; color: var(--text-3); font-size: .95rem;
}
.nh-loading::before {
  content: ""; display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; margin-right: 8px; vertical-align: -3px;
  animation: nh-spin .8s linear infinite;
}
@keyframes nh-spin { to { transform: rotate(360deg); } }

/* 分页 */
.nh-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 2px 0; font-size: .9rem; color: var(--text-2); }
.nh-pager button {
  min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2);
}
.nh-pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.nh-pager button:disabled { opacity: .45; cursor: not-allowed; }
.nh-pager .nh-pager-info { margin-right: auto; }

/* 弹窗 */
.nh-mask {
  position: fixed; inset: 0; background: rgba(30, 45, 60, .45);
  display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 20px;
}
.nh-modal {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 640px;
  max-height: 88vh; overflow: auto; box-shadow: 0 12px 40px rgba(20, 40, 60, .25);
}
.nh-modal-lg { max-width: 900px; }
.nh-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.nh-modal-head h3 { font-size: 1.08rem; }
.nh-modal-close { border: none; background: none; font-size: 1.3rem; cursor: pointer; color: var(--text-3); line-height: 1; }
.nh-modal-body { padding: 20px 22px; }
.nh-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); }

/* Toast */
.nh-toast {
  position: fixed; left: 50%; top: 8%; transform: translateX(-50%);
  padding: 11px 20px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600;
  color: #fff; background: #2C3E50; z-index: 9999; box-shadow: var(--shadow-hover);
  max-width: 80vw; animation: nh-toast-in .18s ease-out;
}
.nh-toast.success { background: var(--green); }
.nh-toast.error { background: var(--red); }
.nh-toast.warn { background: var(--orange); }
@keyframes nh-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 键值展示 */
.nh-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.nh-kv .nh-kv-item { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .94rem; }
.nh-kv .nh-kv-key { color: var(--text-3); flex-shrink: 0; min-width: 84px; }
.nh-kv .nh-kv-val { color: var(--text); word-break: break-all; }
@media (max-width: 640px) { .nh-kv { grid-template-columns: 1fr; } }

/* 风险/状态强调 */
.nh-danger-text { color: var(--red); font-weight: 700; }
.nh-warn-text { color: #9A6700; font-weight: 600; }
.nh-ok-text { color: var(--green); font-weight: 600; }

/* 登录页 */
.nh-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #E8F2F9, #F4F8FB 60%); padding: 24px; }
.nh-login-box { width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 34px 30px 28px; }
.nh-login-box .nh-login-brand { text-align: center; margin-bottom: 22px; }
.nh-login-box .nh-login-brand .mark { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-grad); color: #fff; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.nh-login-box h1 { font-size: 1.22rem; font-weight: 700; }
.nh-login-box .nh-login-sub { font-size: .86rem; color: var(--text-3); margin-top: 4px; }
.nh-login-tip { margin-top: 16px; font-size: .82rem; color: var(--text-3); line-height: 1.7; }
@media (max-width: 900px) {
  .nh-login-page {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px 16px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nh-login-box { padding: 26px 22px 22px; }
  .nh-login-box .nh-login-brand { margin-bottom: 16px; }
}

/* 驾驶舱指标 */
.nh-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.nh-kpi .nh-kpi-card { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px 18px; }
.nh-kpi .nh-kpi-label { font-size: .84rem; color: var(--text-3); }
.nh-kpi .nh-kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); margin-top: 4px; font-variant-numeric: tabular-nums; }
.nh-kpi .nh-kpi-value.danger { color: var(--red); }
.nh-kpi .nh-kpi-foot { font-size: .78rem; color: var(--text-3); margin-top: 2px; }
@media (max-width: 860px) { .nh-kpi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nh-kpi { grid-template-columns: 1fr; } }

/* 床位看板 */
.nh-bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nh-bed-card { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.nh-bed-card .nh-bed-no { font-weight: 700; font-size: .98rem; }
.nh-bed-card .nh-bed-meta { font-size: .8rem; color: var(--text-3); margin-top: 2px; }
.nh-bed-card .nh-bed-elder { font-size: .9rem; margin-top: 6px; }
.nh-bed-card.free { border-color: #ABE5C6; background: #F6FDF9; }
.nh-bed-card.occupied { border-color: #B8DCEF; background: #F7FBFE; }
.nh-bed-card.reserved { border-color: #F5D78B; background: #FFFCF2; }
.nh-bed-card.maintenance { border-color: #F5B7B1; background: #FDF6F5; }

/* 表格网格线：所有 data-table 统一加竖线，列与列对齐 */
table.data-table { border: 1px solid var(--border); table-layout: auto; }
table.data-table th,
table.data-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data-table th:last-child,
table.data-table td:last-child { border-right: none; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table th { white-space: nowrap; }

/* 排班周视图 */
.nh-sched th, .nh-sched td { text-align: center; }
.nh-sched th.nh-sched-name, .nh-sched td.nh-sched-name { text-align: left; white-space: nowrap; min-width: 96px; }
.nh-sched-date { font-size: .78rem; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.nh-sched-dept { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.nh-sched-cell { cursor: pointer; height: 56px; }
.nh-sched-cell:hover { background: #F2F8FC; }
.nh-sched-add { color: var(--text-3); opacity: 0; }
.nh-sched-cell:hover .nh-sched-add { opacity: 1; }
.nh-sched-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; margin: 1px 0; }
.nh-sched-chip.blue { background: #E4F0FA; color: #1B6CA8; }
.nh-sched-chip.orange { background: #FDF6E3; color: #9A6700; }
.nh-sched-chip.purple { background: #EFE9FA; color: #5B3FA8; }
.nh-sched-chip.green { background: #E8F6EF; color: #1E7E45; }
.nh-sched-chip.red { background: #FDECEA; color: #A93226; }
.nh-sched-range { font-size: .9rem; color: var(--text-2); }
.nh-sched-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.nh-sched-editor-head { font-weight: 700; margin-bottom: 10px; }
.nh-sched-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.nh-sched-check { display: flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
.nh-sched-area, .nh-sched-note { padding: 7px 10px; font-size: .88rem; }
@media (max-width: 768px) { .nh-sched-row { grid-template-columns: 1fr; } }

/* 收支趋势（纯 CSS 条形） */
.nh-trend-head { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.nh-trend { display: flex; align-items: flex-end; gap: 12px; padding: 0 4px; }
.nh-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.nh-trend-val { font-size: .76rem; color: var(--text-3); margin-bottom: 4px; white-space: nowrap; }
.nh-trend-track { width: 100%; height: 140px; display: flex; align-items: flex-end; justify-content: center; }
.nh-trend-bar { width: 56%; max-width: 46px; background: #D6E6F5; border-radius: 4px 4px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.nh-trend-paid { width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; }
.nh-trend-month { font-size: .8rem; color: var(--text-2); margin-top: 6px; }
.nh-trend-legend { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-3); margin-top: 10px; }
.nh-trend-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; }
.nh-trend-legend .dot:first-child { margin-left: 0; }
.nh-trend-legend .dot.due { background: #D6E6F5; }
.nh-trend-legend .dot.paid { background: var(--blue); }

/* 护理员本周排班 */
.nh-my-sched { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.nh-my-sched-day { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.nh-my-sched-wd { font-weight: 700; font-size: .9rem; }
.nh-my-sched-date { font-size: .78rem; color: var(--text-3); margin: 2px 0 6px; }
.nh-my-sched-body { min-height: 26px; }
@media (max-width: 768px) { .nh-my-sched { grid-template-columns: repeat(2, 1fr); } }

/* 护理内容勾选 */
.nh-check-group { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nh-check-title { font-size: .86rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.nh-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 4px 10px; }
.nh-check { display: flex; align-items: center; gap: 6px; font-size: .9rem; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.nh-check:hover { background: #F2F8FC; }
.nh-check input { flex-shrink: 0; }

/* 膳食管理 */
.nh-meal-card { display: flex; flex-direction: column; gap: 8px; }
.nh-meal-head { font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.nh-meal-text { min-height: 96px; resize: vertical; font-size: .9rem; padding: 8px 10px; }
.nh-meal-note { font-size: .88rem; padding: 7px 10px; }
.nh-cell-input { padding: 6px 8px; font-size: .86rem; min-width: 110px; }
.nh-check-inline { display: inline-flex; margin-right: 6px; font-size: .82rem; }
.nh-sum-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.nh-sum-total { font-size: .88rem; color: var(--blue); font-weight: 600; }
.nh-sum-off { font-size: .82rem; color: #A93226; margin-top: 4px; }

/* 空调管理 */
.nh-ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.nh-ac-card { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.nh-ac-card.on { border-color: #ABE5C6; background: #F6FDF9; }
.nh-ac-card.offline { opacity: .6; border-style: dashed; }
.nh-ac-head { display: flex; justify-content: space-between; align-items: baseline; grid-column: 1; }
.nh-ac-head b { font-size: .98rem; }
.nh-ac-loc { font-size: .74rem; color: var(--text-3); }
.nh-ac-name { font-size: .78rem; color: var(--text-2); grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-ac-temp { font-size: 1.45rem; font-weight: 700; margin: 0; text-align: right; grid-column: 2; grid-row: 1 / span 2; }
.nh-ac-meta { font-size: .76rem; color: var(--text-3); grid-column: 1 / -1; }
.nh-ac-actions { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.nh-ac-actions .btn { padding: 3px 8px; font-size: .76rem; }
.nh-ac-tempinput { max-width: 100px; }

/* 体征录入参考值（未调整时灰色） */
.form-input.nh-ref { color: #9AA5B1; }

/* 驾驶舱可点击卡片与待办 */
.nh-clickable { cursor: pointer; }
.nh-clickable:hover { border-color: var(--blue); }
.nh-pending-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; font-size: .9rem; }
.nh-pending-row:last-child { border-bottom: 0; }
.nh-recent-row { display: block; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; }
.nh-recent-row:last-child { border-bottom: 0; }
.nh-recent-main { font-size: .9rem; }
.nh-recent-meta { font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.nh-click-tag { cursor: pointer; text-decoration: none; }
.nh-click-tag:hover { opacity: .85; }
.nh-plain-link { color: inherit; text-decoration: none; }
.nh-plain-link:hover { text-decoration: underline; }
.nh-pending-no {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 50%; background: #EEF3F8;
  color: var(--text-2); font-size: .72rem; font-style: normal; margin-right: 8px;
}

/* 本院首页（机构门户） */
.portal-page { background: #F0F4F8; }
.portal { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }
.portal-hero {
  margin: 0 -16px; padding: 42px 32px 96px;
  background: linear-gradient(135deg, #0E4C7A 0%, #1B6CA8 55%, #2E8BC0 100%);
  position: relative; overflow: hidden;
}
.portal-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.portal-hero::before {
  content: ""; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.portal-hero-inner {
  position: relative; z-index: 1; max-width: 1048px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.portal-logo {
  width: 76px; height: 76px; border-radius: 20px; background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  flex-shrink: 0; overflow: hidden;
}
.portal-logo img { width: 100%; height: 100%; object-fit: cover; }
.portal-brand { flex: 1; min-width: 240px; }
.portal-eyebrow { font-size: .78rem; letter-spacing: .18em; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.portal-brand h1 { color: #fff; font-size: 2rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: .02em; }
.portal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-meta i {
  font-style: normal; font-size: .78rem; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 3px 10px; border-radius: 999px;
}
.portal-meta i.portal-meta-empty { background: rgba(255,255,255,.08); border-style: dashed; color: rgba(255,255,255,.65); }
.portal-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.portal-enter {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px;
  background: #fff; color: #0E4C7A; border-radius: 999px; font-weight: 700;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.portal-enter:hover { transform: translateY(-1px); }
.portal-ghost {
  padding: 9px 16px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px;
  background: transparent; color: #fff; font-size: .86rem; cursor: pointer; text-decoration: none;
}
.portal-ghost:hover { background: rgba(255,255,255,.12); }
.portal-body { max-width: 1048px; margin: 0 auto; }
.portal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(16,49,80,.10);
  margin: -64px 0 20px; overflow: hidden; position: relative; z-index: 2;
}
.portal-stat { padding: 18px 20px; border-right: 1px solid #EDF2F6; }
.portal-stat:last-child { border-right: 0; }
.portal-stat-v { font-size: 1.7rem; font-weight: 800; color: #0E4C7A; line-height: 1.2; }
.portal-stat-v small { font-size: .78rem; font-weight: 500; color: #7B8A99; margin-left: 2px; }
.portal-stat-l { font-size: .86rem; color: #3E5468; margin-top: 4px; }
.portal-stat-h { font-size: .74rem; color: #9AA9B7; margin-top: 2px; }
.portal-two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.portal-card { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 6px 18px rgba(16,49,80,.06); }
.portal-card-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #16324A; margin-bottom: 10px; }
.portal-dot { width: 6px; height: 16px; border-radius: 3px; background: linear-gradient(#1B6CA8, #2E8BC0); }
.portal-text { margin: 0; line-height: 1.85; color: #41566B; font-size: .94rem; }
.portal-quote { margin: 0; font-size: 1.04rem; line-height: 1.9; color: #16324A; font-family: Georgia, "Songti SC", serif; }
.portal-sign { margin-top: 12px; text-align: right; color: #7B8A99; font-size: .86rem; }
.portal-sign span { margin-left: 6px; color: #9AA9B7; }
.portal-empty {
  display: block; padding: 18px; border: 1px dashed #D5E0EA; border-radius: 10px;
  color: #9AA9B7; font-size: .86rem; text-align: center; background: #FAFCFE;
}
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.portal-entry {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px; background: #fff; border-radius: 14px; text-decoration: none; color: #16324A;
  box-shadow: 0 6px 18px rgba(16,49,80,.06); border: 1.5px solid transparent;
  transition: all .18s ease;
}
.portal-entry:hover { border-color: #BFD9EE; box-shadow: 0 12px 26px rgba(16,49,80,.12); transform: translateY(-2px); }
.portal-entry-ico { font-size: 1.5rem; }
.portal-entry-k { font-weight: 700; font-size: .98rem; }
.portal-entry-d { font-size: .8rem; color: #7B8A99; }
.portal-entry-arrow { position: absolute; right: 16px; bottom: 18px; color: #A9BACA; }
.portal-section { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 6px 18px rgba(16,49,80,.06); }
.portal-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.portal-section-head h2 { font-size: 1rem; margin: 0; color: #16324A; }
.portal-section-head span { font-size: .78rem; color: #9AA9B7; }
.portal-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portal-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #F2F6FA; }
.portal-photo img { width: 100%; height: 100%; object-fit: cover; }
.portal-photo-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed #D5E0EA; color: #9AA9B7; font-size: .86rem;
}
.portal-photo-empty small { font-size: .74rem; }
.portal-footer { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 22px; color: #8A99A8; font-size: .82rem; }
.portal-foot-main { color: #5B6E80; font-weight: 600; }

/* 总工作面 */
.portal-hero-sm { padding: 34px 32px 40px; }
.ws-list { display: flex; flex-direction: column; gap: 10px; }
.ws-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; background: #FAFCFE; border: 1.5px solid #E3EBF2; border-radius: 12px; cursor: pointer; transition: all .16s; }
.ws-item:hover { border-color: #BFD9EE; background: #F4FAFE; transform: translateY(-1px); }
.ws-item.is-current { border-color: #ABE5C6; background: #F6FDF9; }
.ws-ico { font-size: 1.6rem; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(16,49,80,.08); }
.ws-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-name { font-weight: 700; color: #16324A; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ws-badge { font-style: normal; font-size: .72rem; color: #1E7E45; background: #E8F6EF; border-radius: 999px; padding: 1px 8px; }
.ws-sub { font-size: .8rem; color: #7B8A99; }
.ws-arrow { color: #A9BACA; }

/* 护理员工作台：今日重点 / 领用记录 */
.nh-focus-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.nh-focus-row:last-child { border-bottom: 0; }
.nh-focus-tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.nh-focus-tag.red { background: #FDECEA; color: #A93226; }
.nh-focus-tag.orange { background: #FDF6E3; color: #9A6700; }
.nh-focus-tag.blue { background: #E4F0FA; color: #1B6CA8; }
.nh-focus-name { font-weight: 600; color: var(--text); }
.nh-focus-desc { color: var(--text-3); font-size: .82rem; flex: 1; }

/* 护理员工作台：快捷记录 / 安全检查 / 交接班 */
.nh-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.nh-quick-btn { padding: 14px 16px; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; text-align: left; font-size: .92rem; font-weight: 600; color: var(--text); cursor: pointer; }
.nh-quick-btn:hover { border-color: var(--blue); background: #F4FAFE; }
.nh-check-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.nh-check-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.nh-check-row:last-child { border-bottom: 0; }
.nh-check-label { min-width: 170px; font-size: .9rem; }
.nh-check-note { max-width: 220px; padding: 5px 8px; font-size: .84rem; }
.nh-note-list { margin-top: 12px; }

/* 床位呼叫 */
.nh-call-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.nh-call-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #FFF8E6; border: 1.5px solid #F3D48A; margin-bottom: 8px; flex-wrap: wrap; }
.nh-call-row.emergency { background: #FDECEA; border-color: #F1B0A8; }
.nh-call-bed { font-weight: 800; font-size: 1.05rem; color: #A93226; min-width: 72px; }
.nh-call-elder { font-weight: 600; }
.nh-call-time { color: var(--text-3); font-size: .82rem; flex: 1; }

/* 通知公告 */
.nh-notice { margin-bottom: 12px; cursor: pointer; border-left: 4px solid transparent; }
.nh-notice.unread { border-left-color: var(--blue); background: #FAFDFF; }
.nh-notice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nh-notice-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.nh-notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #E74C3C; display: inline-block; }
.nh-notice-body { color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.nh-notice-meta { margin-top: 8px; font-size: .78rem; color: var(--text-3); }

/* 监护人缴费方式 */
.nh-pay-qr { width: 200px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #F7FAFC; display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; }
.nh-pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.nh-pay-qr-empty { border: 1.5px dashed var(--border); color: #9AA9B7; font-size: .86rem; text-align: center; padding: 12px; aspect-ratio: auto; min-height: 120px; }
.nh-pay-acc { font-size: .9rem; color: var(--text-2); margin-bottom: 8px; word-break: break-all; }

/* 移动端抽屉菜单 */
.nh-menu-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; font-size: 1.1rem; color: var(--text-2); cursor: pointer; flex-shrink: 0; }
.nh-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nh-menu-mask { display: none; }
@media (max-width: 900px) {
  .nh-layout { display: block; position: relative; }
  .nh-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; max-width: 82vw;
    height: 100vh; transform: translateX(-100%); transition: transform .22s ease;
    z-index: 80; border-right: 1.5px solid var(--border); border-bottom: none;
    overflow-y: auto; background: #fff;
  }
  .nh-layout.menu-open .nh-sidebar { transform: translateX(0); }
  .nh-menu { display: block; padding: 8px 0; }
  .nh-menu-item { border-left: 3px solid transparent; border-bottom: none; }
  .nh-menu-item.active { border-left-color: var(--blue); border-bottom-color: transparent; }
  .nh-menu-toggle { display: inline-flex; }
  .nh-menu-mask { display: block; position: fixed; inset: 0; background: rgba(10,30,50,.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nh-layout.menu-open .nh-menu-mask { opacity: 1; pointer-events: auto; }
  .nh-topbar { padding: 10px 14px; }
}
@media (max-width: 900px) {
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .portal-stat { border-right: 0; border-bottom: 1px solid #EDF2F6; }
  .portal-two-col { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portal-hero { padding: 30px 20px 88px; }
  .portal-brand h1 { font-size: 1.5rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-photos { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nh-dashboard { padding: 16px; }
  .nh-topbar { padding: 12px 16px; }
  .nh-toolbar .form-input, .nh-toolbar .form-select { max-width: none; flex: 1; }
}
.nh-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nh-media-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; }
.nh-media-item:hover { border-color: #94a3b8; }
.nh-media-icon { width: 40px; height: 40px; border-radius: 8px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.nh-media-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nh-media-meta b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-media-meta span { font-size: 12px; color: #64748b; }
.nh-media-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nh-media-list .nh-media-item { cursor: default; }
.nh-manual-link { margin-left: 8px; font-size: 13px; font-weight: 400; color: #2563eb; text-decoration: none; border-bottom: 1px dashed #93c5fd; }
.nh-manual-link:hover { color: #1d4ed8; }
.nh-manual { font-size: 14px; line-height: 1.8; color: #334155; }
.nh-manual h4 { margin: 14px 0 6px; font-size: 15px; color: #0f172a; }
.nh-manual p { margin: 0 0 8px; }
.nh-manual ul { margin: 6px 0 10px; padding-left: 20px; }
.nh-manual li { margin: 4px 0; }