/* ============================================================
 * 周报填报系统 · v0.2 新增样式：通知铃铛 / 通知面板 / 附件弹层
 * v0.2.1：品牌 LOGO（中冶南方水资源分公司 · 白版 → 深色品牌带）
 * 与 style.css（Modern Luxe）同风格
 * ============================================================ */

/* ---------- 侧边栏品牌区（深色底衬托白版 LOGO） ---------- */
.side-brand {
  padding: 20px 16px 16px;
  background: linear-gradient(150deg, #1d2742 0%, #2a3a66 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.side-logo-img { width: 100%; max-width: 186px; display: block; margin: 0 auto; }
.side-logo-sys {
  margin-top: 12px; text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
}

/* ---------- 铃铛 ---------- */
.bell-wrap { position: relative; }
.bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px; cursor: pointer;
  background: var(--bg-soft, #f4f6fa); border: 1px solid var(--border, #e6e9ef);
  font-size: 16px; line-height: 1; user-select: none;
  transition: background .15s ease;
}
.bell:hover { background: var(--warm-050, #fdf6ec); }
.bell-dot {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger, #d9534f); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- 通知面板 ---------- */
.bell-panel {
  position: absolute; top: 42px; right: 0; z-index: 90;
  width: 320px; max-width: 86vw;
  background: #fff; border: 1px solid var(--border, #e6e9ef);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 40, 60, .14);
  overflow: hidden;
}
.bp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-light, #eef1f6);
  font-size: 13.5px;
}
.bp-n { font-size: 12px; color: var(--danger, #d9534f); }
.bp-clear { margin-left: auto; font-size: 12px; color: var(--accent, #3b6ff5); cursor: pointer; }
.bp-clear:hover { text-decoration: underline; }
.bp-list { max-height: 340px; overflow-y: auto; }
.bp-item { padding: 10px 14px; border-bottom: 1px solid var(--border-light, #eef1f6); cursor: pointer; }
.bp-item:last-child { border-bottom: none; }
.bp-item:hover { background: var(--bg-soft, #f7f9fc); }
.bp-item.unread { background: var(--warm-050, #fdf9f0); }
.bp-item.unread:hover { background: #fdf4e3; }
.bp-t { font-size: 13px; font-weight: 600; color: var(--text-1, #1c2333); display: flex; align-items: center; gap: 6px; }
.bp-item:not(.unread) .bp-t { font-weight: 400; color: var(--text-2, #4a5468); }
.bp-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--danger, #d9534f); flex-shrink: 0; }
.bp-b { font-size: 12px; color: var(--text-2, #4a5468); margin-top: 2px; word-break: break-all; }
.bp-time { font-size: 11px; color: var(--text-3, #98a1b3); margin-top: 3px; }
.bp-empty { padding: 28px 0; text-align: center; font-size: 12.5px; color: var(--text-3, #98a1b3); }

/* ---------- 附件弹层 ---------- */
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border-light, #eef1f6);
  border-radius: 10px; background: var(--bg-soft, #f9fafc);
}
.att-name { font-size: 13px; color: var(--text-1, #1c2333); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-meta { font-size: 11.5px; color: var(--text-3, #98a1b3); flex-shrink: 0; }
.att-item a { text-decoration: none; flex-shrink: 0; }
.att-pick { display: inline-flex; cursor: pointer; }

/* ---------- 审批流程进度条（v0.3） ---------- */
.flow { margin-top: 6px; }
.fl-track { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.fl-node {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1.4; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--border, #e6e9ef);
  color: var(--text-3, #98a1b3); background: var(--bg-soft, #f7f8fa);
  white-space: nowrap;
}
.fl-dot {
  width: 14px; height: 14px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; background: #d9dde5; color: #fff;
}
.fl-node.done { border-color: #9FE1CB; background: #E1F5EE; color: #0F6E56; }
.fl-node.done .fl-dot { background: #1D9E75; }
.fl-node.cur { border-color: #85B7EB; background: #E6F1FB; color: #185FA5; font-weight: 600; }
.fl-node.cur .fl-dot { background: #378ADD; box-shadow: 0 0 0 3px rgba(55, 138, 221, .18); }
.fl-node.rej { border-color: #F09595; background: #FCEBEB; color: #A32D2D; font-weight: 600; }
.fl-node.rej .fl-dot { background: #E24B4A; }
.fl-node.back { border-color: #FAC775; background: #FAEEDA; color: #854F0B; }
.fl-line { width: 14px; height: 1.5px; background: var(--border, #dfe3ea); flex-shrink: 0; }
.fl-note { display: block; font-size: 11px; color: var(--text-3, #98a1b3); margin-top: 3px; }
.fl-note.rej { color: #A32D2D; }

/* ---------- 流程模板编辑器（v0.5） ---------- */
.fl-edit-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.fl-edit-row select, .fl-edit-row input {
  padding: 5px 8px; font-size: 12.5px; border: 1px solid var(--border, #e6e9ef);
  border-radius: 8px; background: #fff; color: var(--text-1, #1c2333); min-width: 0;
}

/* ---------- 树状组织架构（v0.5.3） ---------- */
.tree-v5 { font-size: 13px; user-select: none; padding: 4px 0; }
.tv-node { }
.tv-head {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.tv-head:hover { background: var(--bg-soft, #f4f6fb); }
.tv-root { background: linear-gradient(120deg, #1d2742, #2a3a66); border-radius: 10px; padding: 9px 12px; }
.tv-root b { color: #fff; font-size: 13.5px; letter-spacing: 1px; }
.tv-root .tv-meta { color: rgba(255,255,255,.75); }
.tv-root .tv-arrow { color: rgba(255,255,255,.8); }
.tv-arrow {
  width: 14px; text-align: center; color: var(--text-3, #98a1b3);
  font-size: 10px; transition: transform .15s ease; flex-shrink: 0;
}
.tv-node.tv-open > .tv-head .tv-arrow { transform: rotate(90deg); }
.tv-meta { font-size: 11.5px; color: var(--text-3, #98a1b3); }
.tv-kids {
  display: none;
  margin-left: 14px; padding-left: 12px;
  border-left: 1.5px solid var(--border, #e3e7f0);
}
.tv-node.tv-open > .tv-kids { display: block; }
.tv-leaf { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; }
.tv-leaf:hover { background: var(--bg-soft, #f7f9fc); }
.tv-leaf b { font-weight: 500; color: var(--text-1, #1c2333); }
.tv-leaf .avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-primary, #3b6ff5); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}

/* 树节点操作按钮（hover 显示） */
.tv-ops { margin-left: auto; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.tv-head:hover .tv-ops { opacity: 1; }
.tv-op { padding: 1px 6px !important; font-size: 11px !important; }
.tv-empty { padding: 4px 8px; font-size: 12px; color: var(--text-3, #98a1b3); }

/* ---------- 周报详情大弹层（v0.5.4） ---------- */
.detail-modal { padding: 26px 30px; }
.detail-modal > h4 { font-size: 16.5px; margin-bottom: 14px; }
.detail-modal .form-section { margin-bottom: 18px; }
.detail-modal .tbl { font-size: 13px; }
.detail-modal .tbl th, .detail-modal .tbl td { padding: 10px 12px; white-space: normal; }
@media (min-width: 900px) {
  .detail-modal .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
}

/* ---------- SVG 线性图标（v0.6.3：Feather 风格，替代 emoji 去 AI 味） ---------- */
svg.icv {
  width: 1.05em; height: 1.05em;
  vertical-align: -0.16em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.side-item svg.icv, .tab svg.icv { width: 1.15em; height: 1.15em; }
.btn svg.icv { vertical-align: -0.18em; }

/* ---------- 历史周报筛选栏（v0.7.1：对齐系统输入风格） ---------- */
.hist-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-bottom: 12px;
}
.hf-item { display: flex; align-items: center; gap: 7px; }
.hf-item label {
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  color: var(--text-2, #4a5468);
}
.hf-item select, .hf-item input {
  height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--border, #dde3ee); border-radius: 8px;
  background: #fff; color: var(--text, #1c2333); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hf-item select { min-width: 106px; padding-right: 26px; }
.hf-item.hf-grow { flex: 1 1 240px; min-width: 220px; }
.hf-item.hf-grow input { width: 100%; }
.hf-item select:hover, .hf-item input:hover { border-color: #c3cbdb; }
.hf-item select:focus, .hf-item input:focus {
  border-color: var(--primary, #3b6ff5);
  box-shadow: 0 0 0 3px rgba(59, 111, 245, 0.12);
}

/* ---------- 工作台生效流程列表（v0.7.5） ---------- */
.flow-line-item { padding: 10px 0; border-bottom: 1px dashed var(--border-light, #eef1f6); }
.flow-line-item:last-of-type { border-bottom: none; }
.fli-head { display: flex; align-items: center; gap: 8px; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 899px) {
  .bell-panel { right: -60px; }
}
