/* 用药管理页 · 高密度布局 v2（独立注入，仅外观，不改功能/结构，可回滚）
 * 在 polish / compact 之后加载。核心：顶部信息区瘦身 + 药名与用法合并为同一行，一屏容纳多位老人。
 */

/* —— 1) 绿色用药档案条：压成单行小条，保留“打开用药档案”入口 —— */
#med-record-entry-v1{
  margin:0 0 8px !important;
  padding:4px 12px !important;
  font-size:12px !important;
  border-radius:8px !important;
  min-height:0 !important;
  line-height:1.4 !important;
}
#med-record-entry-v1 span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#med-record-entry-v1 a{ padding:3px 10px !important; font-size:12px !important; border-radius:6px !important; }

/* —— 2) 页面标题区收紧 —— */
.tmc-head{ margin-bottom:6px; }
.tmc-title{ font-size:16px; }
.tmc-sub{ font-size:11.5px; margin-top:1px; }
.tmc-head .tmc-btn{ padding:4px 12px; font-size:12px; }

/* —— 3) 统计卡：压成一条细栏（一行数字+小字） —— */
.tmc-stats{ gap:8px; margin-bottom:8px; }
.tmc-stat{ padding:6px 12px; border-radius:9px; }
.tmc-stat-v{ font-size:17px; line-height:1.05; }
.tmc-stat-l{ font-size:11px; margin-top:1px; }

/* —— 4) 老人卡 / 卡头压薄 —— */
.tmc-card{ border-radius:11px; margin-bottom:8px; }
.tmc-card-h{ padding:6px 12px; }
.tmc-eld{ font-size:13.5px; }
.tmc-bed{ font-size:10.5px; padding:1px 6px; margin-left:7px; }
.tmc-card-h-r{ font-size:11.5px; }
.tmc-card-b{ padding:0 12px 4px; }

/* —— 5) 时段标题压薄 —— */
.tmc-slot{ margin-top:5px; }
.tmc-slot-h{ gap:8px; margin-bottom:0; }
.tmc-slot-name{ font-size:11.5px; padding:0 0 0 9px; }
.tmc-slot-name::before{ height:11px; width:3px; }

/* —— 6) 核心：药名 + 用法说明合并为同一行（原来各占一行） —— */
.tmc-med{ padding:3px 2px; gap:12px; align-items:center; }
.tmc-med-l{ display:flex; align-items:baseline; gap:10px; min-width:0; flex:1; }
.tmc-med-name{ font-size:13px; gap:6px; white-space:nowrap; }
.tmc-med-meta{
  font-size:11px; margin-top:0; line-height:1.3;
  color:#a8abb2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* 未服/漏服原因原本另起一行，改为紧跟在 meta 后用分隔点显示 */
.tmc-reason{ font-size:11px; white-space:nowrap; }

/* —— 7) 操作按钮保持可点，进一步收窄 —— */
.tmc-acts{ gap:5px; }
.tmc-btn{ padding:4px 10px; font-size:12px; border-radius:6px; }
.tmc-btn-sm{ padding:2px 8px; font-size:11px; }
.tmc-tag{ font-size:10px; padding:1px 6px; }

/* —— 8) 隐藏每位老人时段里的“一键全部已服”（改为统一的全局一键全服） —— */
.tmc-slot-h .tmc-btn[data-slotall]{ display:none !important; }

/* —— 9) 空态 —— */
.tmc-empty{ padding:28px 16px; font-size:13px; }
