/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-workspace {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #bad8d2;
  border-radius: 18px;
  background: #f7fbfa;
  color: #173d42;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.daily-care-workspace *, .daily-care-workspace *::before, .daily-care-workspace *::after { box-sizing: border-box; }

.daily-care-workspace h2 { margin: 0 0 12px; }

.daily-care-workspace h3 { margin: 16px 0 8px; }

.daily-care-workspace p { margin: 10px 0; }

.daily-care-workspace summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-weight: 700; }

.daily-care-workspace summary > span { display: block; padding-left: 20px; font-size: .86em; font-weight: 400; color: #49696b; }

/* 日常反馈填写：将问题、可选答案、文字补充和提交动作按填写顺序组织；选中与焦点状态帮助核对输入，来源和保存规则由业务层处理。 */
.daily-care-entry, .daily-care-group, .daily-care-history { border-top: 1px solid #c7ded8; }

.daily-care-question { border: 0; margin: 20px 0; padding: 0; min-width: 0; }

.daily-care-question legend { padding: 0; margin-bottom: 10px; font-weight: 700; }

.daily-care-options { display: flex; flex-wrap: wrap; gap: 8px; }

.daily-care-options label { display: flex; flex: 1 1 145px; align-items: center; gap: 10px; min-height: 48px; min-width: 0; padding: 10px 12px; border: 1px solid #9dbeb5; border-radius: 10px; background: white; cursor: pointer; font-weight: 400; }

.daily-care-options label:has(input:checked) { background: #deeee8; border-color: #1c6b58; box-shadow: inset 0 0 0 1px #1c6b58; }

/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-workspace input[type="radio"], .daily-care-workspace input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: #1c6b58; }

/* 日常反馈填写：将问题、可选答案、文字补充和提交动作按填写顺序组织；选中与焦点状态帮助核对输入，来源和保存规则由业务层处理。 */
.daily-care-note, .daily-care-review > label { display: block; margin: 14px 0; font-weight: 600; }

/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-workspace textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid #a6c1bd; border-radius: 10px; background: white; color: #173d42; font: inherit; resize: vertical; }

.daily-care-workspace button { min-height: 48px; max-width: 100%; padding: 11px 18px; white-space: normal; font: inherit; cursor: pointer; border-radius: 10px; }

.daily-care-workspace button:disabled { cursor: wait; opacity: .65; }

.daily-care-workspace :focus-visible { outline: 3px solid #186bbc; outline-offset: 3px; }

.daily-care-local-only { display: block; color: #4e676a; margin-top: 12px; }

.daily-care-feedback:not(:empty) { padding: 12px; border-left: 4px solid #257568; background: #e6f3ee; font-weight: 600; }

.daily-care-safety-note { font-size: .9em; color: #724222; }

.daily-care-records { padding: 0; margin: 0; list-style: none; }

.daily-care-record { list-style: none; margin: 0; padding: 18px 0; border-top: 1px solid #cadcd7; }

.daily-care-record-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }

.daily-care-record-heading h3 { margin: 0; font-size: 1.05em; }

.daily-care-record-heading > span { color: #49696b; font-size: .88em; }

/* 已回复反馈使用紧凑摘要，安全待办保留在折叠区外；缩短普通历史记录不改变风险提示优先级。 */
.daily-care-record-details { margin-top: 6px; }
.daily-care-record-details > summary { padding: 8px 0; min-height: 40px; font-size: .9em; color: #256658; }

.daily-care-safety, .daily-care-reply { padding: 14px; margin-top: 14px; border-left: 4px solid #b15128; background: #fff0e5; border-radius: 6px; }

.daily-care-reply { border-color: #24715e; background: #e7f3ee; }

/* 已关闭风险的旧说明使用中性层级，不能把过去的提醒继续呈现成正在发生的紧急事件。 */
.daily-care-safety-history { border-color: #7b9490; background: #eef3f1; }

.daily-care-reply p, .daily-care-original, .daily-care-internal { white-space: pre-wrap; }

.daily-care-safety p, .daily-care-reply p { margin: 7px 0; }

.daily-care-values { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr; gap: 8px 14px; margin: 12px 0; }

.daily-care-values dt { color: #4a676a; }

.daily-care-values dd { margin: 0; }

.daily-care-counts { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0; font-weight: 600; }

.daily-care-meta { font-size: .88em; color: #4e676a; }

.daily-care-internal { padding: 10px 12px; background: #edf0f4; }

.daily-care-review { padding: 12px 0; }

.daily-care-review > small { display: block; margin-top: 8px; color: #4e676a; }

.daily-care-review .daily-care-confirm { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }

.daily-care-confirm input { margin-top: 3px !important; }

.daily-care-publish { border-top: 1px dashed #a8c6bc; }

.daily-care-elder { font-size: 21px; }

/* 日常反馈填写：将问题、可选答案、文字补充和提交动作按填写顺序组织；选中与焦点状态帮助核对输入，来源和保存规则由业务层处理。 */
.daily-care-elder .daily-care-options label, .daily-care-elder button { min-height: 58px; }

.daily-care-elder .daily-care-question { margin: 24px 0; }

/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-elder summary { font-size: 1.08em; }

/* 响应式布局（(max-width: 480px)）：覆盖此条件下的列数、导航、字段宽度和阅读顺序，权限与数据筛选规则不随视口改变。 */
@media (max-width: 480px) {

  /* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
  .daily-care-workspace { padding: 17px; }

  /* 日常反馈填写：将问题、可选答案、文字补充和提交动作按填写顺序组织；选中与焦点状态帮助核对输入，来源和保存规则由业务层处理。 */
  .daily-care-options label { flex-basis: 100%; }

  /* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
  .daily-care-submit { width: 100%; }

  .daily-care-values { grid-template-columns: 1fr; gap: 2px; }

  .daily-care-values dd { padding-bottom: 8px; }

  .daily-care-elder { font-size: 20px; }
}

/* 录音控件沿用老人端大字与大触点，不把计时状态做成可点击按钮。 */
.elder-voice-content { padding: 4px 18px 18px; }

.elder-voice-content > button { margin: 8px 8px 4px 0; }

.elder-voice-consent { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; }

.elder-voice-consent input { margin-top: 6px !important; }

/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-elder .elder-voice-consent, .daily-care-elder .elder-voice-draft > label { font-size: 20px; line-height: 1.6; }

.daily-care-elder .elder-voice-draft > label { display: block; }

/* 主动语音反馈：录制、停止、转写核对、确认与取消各自保留可辨认的控件和状态；稿件区便于修改文字，样式不代表已经保存录音或反馈。 */
.elder-voice-privacy, .elder-voice-draft > p { color: #49696b; font-size: .86em; }

.elder-voice-recording { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; border-radius: 12px; background: #fff0e8; }

.elder-voice-dot { width: 14px; height: 14px; border-radius: 50%; background: #b3342c; }

.elder-voice-recording output { font-variant-numeric: tabular-nums; }

.elder-voice-content audio { display: block; max-width: 100%; width: 100%; margin: 16px 0; }

.elder-voice-draft { padding-top: 12px; }

.elder-voice-transcript { white-space: pre-wrap; }

.elder-voice-working { padding: 14px; border-radius: 10px; background: #e4eeeb; }

.elder-voice-unavailable { font-size: .86em; color: #724222; }

/* 日常反馈记录：按来源、记录正文、核对信息和已发布回复组织内容；处理表单与记录相邻，辅助说明使用独立的文字层级。 */
.daily-care-notices { margin-top: 14px; border-top: 1px solid #c7ded8; }

/* 响应式布局（(max-width: 680px)）：覆盖此条件下的列数、导航、字段宽度和阅读顺序，权限与数据筛选规则不随视口改变。 */
@media (max-width: 680px) {
/* 主动语音反馈：录制、停止、转写核对、确认与取消各自保留可辨认的控件和状态；稿件区便于修改文字，样式不代表已经保存录音或反馈。 */
.elder-voice-content > button, .elder-voice-draft > button { width: 100%; margin-right: 0; } }

/* 医生导航与工作区：患者内容占据主阅读区，角色、业务入口和登录入口集中在导航区域；选中态仅表示当前位置，权限仍来自共享后台。 */
.doctor-reminder-panel { padding: 24px; color: #173d42; font-size: 21px; line-height: 1.7; overflow-wrap: anywhere; }

.doctor-reminder-panel .sarc-public { margin: 16px 0; padding: 0; border: 0; background: transparent; }

.doctor-reminder-panel .sarc-public > span, .doctor-reminder-panel .sarc-public > h2 { display: none; }

/* 临床资料层级：主档、专病资料、随访和检查内容各自保留阅读区域；标题、字段与辅助说明形成顺序，便于医生核对来源。 */
.doctor-reminder-panel .clinical-public-visits { margin: 22px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid #c9dcd6; border-radius: 0; background: transparent; }

.doctor-reminder-panel .clinical-public-visits h2 { font-size: 1.12em; }

.doctor-reminder-panel .clinical-visit-date { margin: 10px 0; padding: 0; background: transparent; }

/* 医生导航与工作区：患者内容占据主阅读区，角色、业务入口和登录入口集中在导航区域；选中态仅表示当前位置，权限仍来自共享后台。 */
.doctor-reminder-panel p { white-space: pre-wrap; }

.doctor-reminder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.doctor-reminder-actions button { min-height: 58px; font-size: 20px; padding: 12px 18px; }

.doctor-reminder-panel [role="status"]:not(:empty) { padding: 12px; background: #e6f3ee; border-left: 4px solid #257568; }

.doctor-reminder-panel small { font-size: 16px; }

.doctor-reminder-mode, .doctor-reminder-times { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }

.doctor-reminder-mode legend, .doctor-reminder-times legend { margin-bottom: 10px; font-size: 20px; font-weight: 800; }

#doctor-reminder-settings-form { padding: 24px; color: #173d42; font-size: 18px; }

.doctor-reminder-mode label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 10px 0; min-height: 48px; cursor: pointer; }

.doctor-reminder-mode input { width: 22px; height: 22px; accent-color: #257568; }

.doctor-reminder-times:disabled { opacity: .55; }

.doctor-reminder-time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 12px; }

.doctor-reminder-time-grid label { display: grid; gap: 6px; font-weight: 700; }

.doctor-reminder-time-grid input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 8px 10px; border: 1px solid #a9c5c5; border-radius: 10px; background: white; color: #173d42; font: inherit; }

.doctor-reminder-settings-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }

.doctor-reminder-settings-actions button { min-height: 52px; padding: 10px 16px; font-size: 18px; }

.doctor-reminder-settings-status:not(:empty) { padding: 12px; border-left: 4px solid #257568; background: #e6f3ee; }

#doctor-reminder-settings-form > small { display: block; color: #52696e; font-size: 15px; line-height: 1.55; }

/* 响应式布局（(max-width: 480px)）：覆盖此条件下的列数、导航、字段宽度和阅读顺序，权限与数据筛选规则不随视口改变。 */
@media (max-width: 480px) {
/* 医生导航与工作区：患者内容占据主阅读区，角色、业务入口和登录入口集中在导航区域；选中态仅表示当前位置，权限仍来自共享后台。 */
.doctor-reminder-panel, #doctor-reminder-settings-form { padding: 18px; }
.doctor-reminder-actions button, .doctor-reminder-settings-actions button { width: 100%; }
/* 老人操作区：以主要动作和简短反馈为核心排列内容，控制字号、间距和触控边界；长说明使用次级层级，求助入口保留独立辨识度。 */
.elder-reminder-settings-button { padding: 7px; } }
