/* ========== 院感管理系统样式 ========== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  color: #2c3e50;
  background: #f4f6fa;
}

/* ========== 登录页 ========== */
.login-body {
  background: linear-gradient(135deg, #4a90e2 0%, #5b9bd5 50%, #7cb5ec 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap { width: 100%; max-width: 420px; padding: 20px; }

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-header { text-align: center; margin-bottom: 28px; }
.brand {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 2px;
}
.subtitle {
  font-size: 11px;
  color: #95a5a6;
  margin-top: 4px;
  letter-spacing: 1px;
}
.version {
  font-size: 11px;
  color: #bdc3c7;
  margin-top: 8px;
}

.login-form .form-row { margin-bottom: 16px; }
.login-form label {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 6px;
}
.login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}
.login-form input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 11px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #357abd; }

.login-error {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fdf2f2;
  border: 1px solid #fbd5d5;
  color: #c0392b;
  border-radius: 6px;
  font-size: 13px;
}

.login-tips {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e0e6ed;
}
.tip-title {
  font-size: 12px;
  color: #95a5a6;
  margin-bottom: 8px;
}
.tip-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #7f8c8d;
  transition: background 0.15s;
}
.tip-row:hover { background: #eef3f7; color: #2c3e50; }
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 8px;
  font-weight: 500;
}
.role-badge.admin { background: #e74c3c; color: #fff; }
.role-badge.icn   { background: #4a90e2; color: #fff; }
.role-badge.doc   { background: #27ae60; color: #fff; }
.role-badge.head  { background: #f39c12; color: #fff; }
.role-badge.leader { background: #9b59b6; color: #fff; }

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: #bdc3c7;
}

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

.sidebar {
  width: 220px;
  background: #2c3e50;
  color: #ecf0f1;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: flex-start;
}
.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid #3d566e;
}
.sidebar-header .brand {
  font-size: 16px;
  letter-spacing: 1px;
}
.sidebar-header .sub {
  font-size: 11px;
  color: #95a5a6;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #bdc3c7;
  text-decoration: none;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.nav-item:hover { background: #34495e; color: #fff; }
.nav-item.active {
  background: #34495e;
  color: #fff;
  border-left-color: #4a90e2;
}
.nav-icon { margin-right: 10px; font-size: 14px; width: 18px; text-align: center; }
.nav-group { padding: 12px 20px 6px; font-size: 11px; color: #7f8c8d; }

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

.topbar {
  background: #fff;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.topbar-title { font-size: 16px; font-weight: 500; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f4f6fa;
  border-radius: 16px;
}
.user-chip .role-badge { margin-right: 0; }

.logout-btn {
  background: transparent;
  border: 1px solid #e0e6ed;
  padding: 5px 12px;
  border-radius: 4px;
  color: #7f8c8d;
  cursor: pointer;
  font-size: 12px;
}
.logout-btn:hover { border-color: #c0392b; color: #c0392b; }

.content { flex: 1; padding: 24px; overflow: auto; }

/* ========== 看板 ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.page-title { font-size: 18px; font-weight: 600; }
.page-meta { font-size: 12px; color: #95a5a6; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #4a90e2;
}
.kpi-card.kpi-warn::before { background: #f39c12; }
.kpi-card.kpi-danger::before { background: #e74c3c; }
.kpi-card.kpi-pass::before { background: #27ae60; }
.kpi-card.kpi-fail::before { background: #e74c3c; }
.kpi-card.kpi-info::before { background: #4a90e2; }

.kpi-label { font-size: 12px; color: #95a5a6; margin-bottom: 6px; }
.kpi-value { font-size: 28px; font-weight: 600; color: #2c3e50; }
.kpi-unit { font-size: 12px; color: #95a5a6; margin-left: 4px; }
.kpi-target {
  font-size: 11px;
  color: #bdc3c7;
  margin-top: 4px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .dash-row { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.panel-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #34495e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-title .badge {
  background: #f4f6fa;
  color: #7f8c8d;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: normal;
}

.chart { width: 100%; height: 280px; }

/* ========== 待办 ========== */
.todo-list { max-height: 380px; overflow: auto; }
.todo-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f7;
  cursor: pointer;
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #f8f9fb; margin: 0 -10px; padding: 10px; border-radius: 4px; }
.todo-level {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.todo-level.danger { background: #e74c3c; box-shadow: 0 0 0 3px #fdecea; }
.todo-level.warning { background: #f39c12; box-shadow: 0 0 0 3px #fef5e7; }
.todo-level.info { background: #4a90e2; box-shadow: 0 0 0 3px #ebf3fc; }
.todo-title { font-size: 13px; color: #2c3e50; }
.todo-sub { font-size: 11px; color: #95a5a6; margin-top: 2px; margin-left: 14px; }

/* ========== 质量指标 ========== */
.quality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.quality-card {
  background: #fff;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #ecf0f1;
}
.quality-name { font-size: 13px; color: #34495e; margin-bottom: 6px; }
.quality-bar {
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.quality-fill { height: 100%; transition: width 0.4s; }
.quality-fill.pass { background: #27ae60; }
.quality-fill.fail { background: #e74c3c; }
.quality-meta { display: flex; justify-content: space-between; font-size: 11px; color: #7f8c8d; }
.quality-pass-tag { font-weight: 500; }
.quality-pass-tag.pass { color: #27ae60; }
.quality-pass-tag.fail { color: #e74c3c; }

/* ========== 表格 ========== */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select {
  padding: 7px 10px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  font-size: 13px;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: #4a90e2; }

.btn {
  padding: 7px 14px;
  border: 1px solid #e0e6ed;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: #4a90e2; color: #4a90e2; }
.btn-primary-solid { background: #4a90e2; color: #fff; border-color: #4a90e2; }
.btn-primary-solid:hover { background: #357abd; color: #fff; border-color: #357abd; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { color: #e74c3c; border-color: #fbd5d5; }
.btn-danger:hover { background: #fdf2f2; color: #c0392b; border-color: #c0392b; }
.btn-success { color: #27ae60; border-color: #c8e6c9; }

table.data-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
table.data-table th, table.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f3f7;
  font-size: 13px;
}
table.data-table th {
  background: #f8f9fb;
  color: #7f8c8d;
  font-weight: 500;
  font-size: 12px;
}
table.data-table tr:hover td { background: #fafbfc; }

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.status-tag.draft { background: #ecf0f1; color: #7f8c8d; }
.status-tag.submitted { background: #ebf3fc; color: #4a90e2; }
.status-tag.approved { background: #e8f5e9; color: #27ae60; }
.status-tag.rejected { background: #fdecea; color: #e74c3c; }
.status-tag.released { background: #f3e5f5; color: #8e44ad; }
.status-tag.pass { background: #e8f5e9; color: #27ae60; }
.status-tag.fail { background: #fdecea; color: #e74c3c; }
.status-tag.scheduled { background: #ecf0f1; color: #7f8c8d; }
.status-tag.issued { background: #ebf3fc; color: #4a90e2; }
.status-tag.accepted { background: #fff3e0; color: #f39c12; }
.status-tag.feedback { background: #e0f7fa; color: #00acc1; }
.status-tag.archived { background: #e8f5e9; color: #27ae60; }
.status-tag.active { background: #fff3e0; color: #f39c12; }
.status-tag.pending { background: #fef5e7; color: #f39c12; }
.status-tag.none { background: #ecf0f1; color: #95a5a6; }

.priority-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}
.priority-tag.high { background: #fdecea; color: #c0392b; }
.priority-tag.medium { background: #fef5e7; color: #f39c12; }
.priority-tag.low { background: #ecf0f1; color: #7f8c8d; }

/* ========== Modal ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  border-radius: 8px;
  width: 640px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f3f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header .title { font-size: 15px; font-weight: 500; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #95a5a6;
}
.modal-body { padding: 20px; overflow: auto; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f3f7;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; color: #7f8c8d; }
.form-field input, .form-field select, .form-field textarea {
  padding: 7px 10px;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 60px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-list label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f6fa;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.checkbox-list input { margin: 0; }

.detail-section { margin-bottom: 18px; }
.detail-section h4 {
  font-size: 13px;
  color: #34495e;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ecf0f1;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.detail-grid .label { color: #95a5a6; font-size: 12px; }
.detail-grid .value { color: #2c3e50; font-size: 13px; }

.empty-state {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
  font-size: 13px;
}

.data-updated {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(44, 62, 80, 0.85);
  color: #ecf0f1;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  z-index: 100;
}

.action-cell button { margin-right: 4px; }

/* 多耐菌统计表 */
.mdro-stats-table { min-width: 900px; font-size: 12px; }
.mdro-stats-table th, .mdro-stats-table td { text-align: center; padding: 6px 4px; }
.mdro-stats-table .row-header { text-align: left; font-weight: 500; min-width: 120px; }
.mdro-stats-table .total { font-weight: 600; background: #f8fafc; }
.mdro-stats-table .ratio { font-weight: 600; color: #4a90e2; background: #f8fafc; }
.mdro-stats-table tr.section-title td {
  background: #eef3f7; color: #34495e; font-weight: 600; text-align: left;
  padding: 8px 12px;
}
.mdro-stats-table tr.total-row td { background: #e8f5e9; font-weight: 600; }
.mdro-stats-table tr.total-row .total { background: #d4edda; }
.mdro-stats-table tr.total-row .ratio { background: #d4edda; color: #27ae60; }
.table-responsive { overflow-x: auto; }

/* 多耐菌统计表：手工录入 */
.mdro-cell { position: relative; }
.mdro-cell.is-manual { background: #fff8e1; color: #8a6d0b; font-weight: 700; }
.mdro-cell.is-manual::after {
  content: '✎';
  position: absolute; top: 0; right: 2px;
  font-size: 9px; line-height: 1; color: #e0a800;
}
.mdro-cell.is-dirty { background: #ffe9d6; box-shadow: inset 0 0 0 1px #f0a04b; }
.mdro-cell.editable { cursor: pointer; }
.mdro-cell.editable:hover { background: #eaf4ff; box-shadow: inset 0 0 0 1px #b8daff; color: #2c6cb0; }
.mdro-cell.editing { padding: 2px !important; background: #eaf4ff; }
.mdro-cell-input {
  width: 100%; min-width: 40px; box-sizing: border-box;
  border: 1px solid #4a90e2; border-radius: 3px;
  padding: 3px 2px; font-size: 12px; text-align: center;
  outline: none; background: #fff; color: #2c3e50;
  -moz-appearance: textfield; appearance: textfield;
}
.mdro-cell-input::-webkit-outer-spin-button,
.mdro-cell-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mdro-edit-hint { font-size: 12px; color: #7f8c8d; line-height: 1.7; margin-bottom: 8px; }
.mdro-edit-hint b { color: #4a90e2; }
.mdro-legend-item { display: inline-block; margin-left: 10px; color: #8a6d0b; }
.mdro-edit-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.mdro-chip {
  font-size: 12px; padding: 3px 10px; border-radius: 10px;
  background: #f0f3f7; color: #7f8c8d;
}
.mdro-chip.manual { background: #fff8e1; color: #8a6d0b; }
.mdro-chip.dirty { background: #ffe9d6; color: #c05621; font-weight: 600; }

@media (max-width: 760px) {
  .sidebar { display: none; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
}
/* ============== 手卫生监测 ============== */
.hh-monthly-table th, .hh-monthly-table td { font-size: 12px; }
.hh-monthly-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.hh-monthly-table .rate-good { background: #e8f5e9; color: #1b5e20; font-weight: 600; }
.hh-monthly-table .rate-mid  { background: #fff8e1; color: #8a6d0b; font-weight: 600; }
.hh-monthly-table .rate-bad  { background: #ffebee; color: #b71c1c; font-weight: 600; }
.hh-monthly-table tr.total-row { background: #f5f7fa; font-weight: 600; }
.hh-monthly-table tr.total-row td { border-top: 2px solid #95a5a6; }

/* ===== 手卫生：单元格就地编辑（交互与多耐菌一致）===== */
.hh-cell { position: relative; }
.hh-cell.editable { cursor: pointer; }
.hh-cell.editable:hover { background: #eaf4ff; box-shadow: inset 0 0 0 1px #b8daff; color: #2c6cb0; }
.hh-cell.is-dirty { background: #ffe9d6; box-shadow: inset 0 0 0 1px #f0a04b; font-weight: 700; }
.hh-cell.is-dirty::after {
  content: '✎';
  position: absolute; top: 0; right: 2px;
  font-size: 9px; line-height: 1; color: #e0a800;
}
.hh-cell.editing { padding: 2px !important; background: #eaf4ff; box-shadow: inset 0 0 0 2px #4a90e2; }
.hh-dash { color: #c9d2db; }
.hh-cell.editable:hover .hh-dash { color: #8fb8e0; }
.hh-cell-input {
  width: 100%; min-width: 48px; box-sizing: border-box;
  border: 1px solid #4a90e2; border-radius: 3px;
  padding: 3px 2px; font-size: 12px; text-align: center; font-weight: 600;
  outline: none; background: #fff; color: #2c3e50;
  -moz-appearance: textfield; appearance: textfield;
}
.hh-cell-input::-webkit-outer-spin-button,
.hh-cell-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 每张表各一个独立编辑栏 */
.hh-edit-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 10px;
  background: #f7fafd; border: 1px solid #e3edf7; border-radius: 6px;
}
.hh-edit-bar .hh-edit-hint2 {
  font-size: 12px; color: #7f8c8d; line-height: 1.7; flex: 1; min-width: 240px;
}
.hh-edit-bar .hh-edit-hint2 b { color: #4a90e2; }
.hh-edit-bar .hh-edit-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.hh-edit-bar .hh-edit-actions .btn { flex-shrink: 0; }
.hh-chip {
  font-size: 12px; padding: 3px 10px; border-radius: 10px;
  background: #f0f3f7; color: #7f8c8d; white-space: nowrap;
}
.hh-chip.dirty { background: #ffe9d6; color: #c05621; font-weight: 600; }

.hh-edit-table { font-size: 11px; }
.hh-edit-table th, .hh-edit-table td { padding: 4px; text-align: center; }
.hh-edit-table .cell-input {
  width: 50px; padding: 3px 4px; border: 1px solid #dcdfe6; border-radius: 3px;
  text-align: center; font-size: 12px;
}
.hh-edit-table .cell-input:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 2px rgba(52,152,219,.15); }
.hh-edit-table thead th { background: #f5f7fa; font-weight: 600; }
.hh-edit-table tbody tr:nth-child(even) td { background: #fafbfc; }
.hh-edit-table tbody td:first-child { background: #eef2f7; font-weight: 600; }
.hh-edit-tip {
  background: #f0f7ff; border-left: 3px solid #3498db;
  padding: 8px 12px; margin-bottom: 12px; font-size: 12px; color: #2c3e50; line-height: 1.6;
}

/* ===== 手卫生编辑弹窗改进 ===== */
.modal-mask .hh-edit-dialog {
  width: min(1100px, calc(100vw - 40px));
  height: calc(100vh - 60px);
  max-height: none;
}
/* 弹窗体滚动区域 */
.hh-edit-dialog .modal-body { flex: 1; overflow: auto; padding: 14px 20px; }
.hh-edit-dialog .modal-footer { flex-shrink: 0; }
/* header 里的月份快捷跳转 */
.hh-jump-nav {
  display: flex; align-items: center; gap: 3px; margin-left: 16px; flex: 1; justify-content: center;
}
.hh-jump-label { font-size: 12px; color: #95a5a6; margin-right: 2px; }
.hh-jump-btn {
  width: 26px; height: 26px; border: 1px solid #e0e6ed; background: #fff; border-radius: 4px;
  font-size: 12px; cursor: pointer; color: #34495e; padding: 0; line-height: 1;
  transition: all 0.12s;
}
.hh-jump-btn:hover { border-color: #4a90e2; color: #4a90e2; background: #f0f7ff; }
/* footer 固定 + 提示 */
.hh-edit-footer { align-items: center; background: #fafbfc; }
.hh-edit-hint { margin-right: auto; font-size: 12px; color: #95a5a6; }
/* 行高亮闪烁（跳转定位用） */
@keyframes hhRowFlash {
  0% { background: #fff7d6; }
  100% { background: transparent; }
}
.hh-edit-table tr.hh-row-flash > td { animation: hhRowFlash 1.5s ease-out; }
/* 弹窗内表格行悬浮定位辅助：月份列固定 */
.hh-edit-table td:first-child, .hh-edit-table th:first-child {
  position: sticky; left: 0; z-index: 2; background: #eef2f7;
}

/* ===== 手卫生编辑弹窗：单元选择条 ===== */
.hh-unit-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 8px 12px; background: #f5f7fa; border-radius: 6px;
}
.hh-unit-label { font-size: 13px; font-weight: 600; color: #34495e; }
.hh-unit-bar select {
  padding: 5px 10px; border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; background: #fff; min-width: 200px;
}
.hh-unit-tip { font-size: 12px; color: #27ae60; margin-left: 8px; }

/* ===== 单元编辑弹窗（窄一些，5列就够）===== */
.modal-mask .hh-dept-edit-dialog {
  width: min(620px, calc(100vw - 40px));
  height: auto;
  max-height: calc(100vh - 60px);
}
/* 单元弹窗的输入框稍宽 */
.hh-dept-edit-dialog .hh-edit-table .cell-input { width: 70px; }
/* 标题徽章：区分全院/单元 */
.hh-title-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600; margin-left: 6px; vertical-align: middle;
  background: #e3f2fd; color: #1565c0;
}
.hh-title-badge-unit {
  background: #fff3e0; color: #e65100;
}
/* 单元 panel 的下拉宽度 */
#hhDeptUnit { min-width: 130px; }
