/* counsel.css —— 心理辅导模块样式（莫兰迪薰衣草配色）
   说明：.rec-* 为「记录型模块」通用样式，心理辅导与危机管理共用。 */

.counsel{ max-width:1200px; margin:0 auto; }

/* 模块标题 + 工具栏 */
.rec-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  gap:12px;
  flex-wrap:wrap;
}
.rec-header h2{ font-size:18px; font-weight:600; color:var(--ink); }
.rec-toolbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.rec-toolbar select{ width:auto; min-width:130px; }
.rec-toolbar .filter-input{ width:220px; }

/* 统计卡片（.stat-card / .stat-label / .stat-num / .stat-unit 见 consult.css） */
.rec-stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-bottom:16px;
}

/* 记录卡片列表 */
.rec-list{ display:grid; gap:12px; }
.rec-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:box-shadow .15s, transform .15s;
}
.rec-card:hover{ box-shadow:0 4px 18px rgba(70,60,90,.12); }
.rec-card-top{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.rec-date{ font-weight:600; color:var(--ink); font-size:13px; }
.rec-tag{
  color:#fff;
  padding:1px 9px;
  border-radius:10px;
  font-size:12px;
  white-space:nowrap;
}
.rec-stu{ color:var(--muted); font-size:13px; }
.rec-topic{ margin-top:7px; font-weight:600; color:var(--ink); font-size:14px; }
.rec-brief{ margin-top:4px; color:var(--muted); font-size:13px; line-height:1.6; }
.rec-card-foot{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}
.rec-dim{ color:var(--muted); font-size:12px; }
.rec-actions{ margin-left:auto; display:flex; gap:8px; }
.rec-actions .btn{
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  border:1px solid var(--line);
  background:#fff;
}
.rec-actions .btn:hover{ background:var(--brand-soft); }
.rec-actions .btn.danger{ color:var(--alert-3); border-color:#ecd6d0; background:#f7efed; }

/* 详情弹窗内的文字块 */
.dt-block{ padding:4px 0; }
.dt-block > span{ display:block; color:var(--muted); font-size:12px; margin-bottom:3px; }
.dt-block > div{ font-size:13px; color:var(--ink); line-height:1.7; }
.dt-spacer{ flex:1; }

/* 状态标签（危机管理共用） */
.x-status{
  font-size:12px;
  padding:1px 9px;
  border-radius:10px;
  background:var(--brand-soft);
  color:var(--brand-deep);
  white-space:nowrap;
}
.x-status.closed{ background:#eaefe9; color:#7f9188; }

/* 附件列表（心理评估等记录型模块共用） */
.attach-list{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.attach-row{ display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.attach-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; color:var(--brand-deep); text-decoration:none; }
.attach-name:hover{ text-decoration:underline; }
.attach-size{ font-size:12px; color:var(--muted); white-space:nowrap; }
.attach-del{ padding:4px 10px; font-size:12px; border-radius:6px; border:1px solid #e5b0a8; background:#f7efed; color:var(--alert-3); cursor:pointer; }
.attach-del:hover{ background:#f0e0dc; }
.attach-empty{ font-size:12px; color:var(--muted); padding:4px 0; }

/* 新增/编辑表单：辅导日期 + 辅导时间 + 辅导形式 同一行 */
.csl-meta-row{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
}
.csl-meta-row .fld{ margin-bottom:0; }
@media (max-width: 560px){
  .csl-meta-row{ grid-template-columns:1fr; }
}

/* 移动端 */
@media (max-width: 860px){
  .rec-stats{ grid-template-columns:repeat(2, 1fr); }
  .rec-toolbar{ width:100%; }
  .rec-toolbar .filter-input{ width:100%; }
  .rec-toolbar select{ flex:1; min-width:0; }
}
@media (max-width: 560px){
  .rec-actions{ margin-left:0; width:100%; }
}
