/* 오늘의 할일 업무 칩(2026-10-31). 2×2 고정 자리: 경과보고 | 처방 상담 / 회신 승인 | 처방 승인.
   색: 경과보고 청록 · 처방 상담 파랑 · 회신 승인 보라 · 처방 승인 주황 · 경고 경과보고 빨강 */
.work-chips{display:grid;grid-template-columns:repeat(2,108px);gap:6px}
.work-chip,.work-chip-empty{min-width:0}
.work-chip{display:inline-grid;gap:0;text-align:left;border-radius:8px;padding:4px 8px 5px;border:1px solid;cursor:pointer;font:inherit;text-decoration:none}
.work-chip-title{font-size:13px;font-weight:800;white-space:nowrap}
.work-chip-time{font-size:11.5px;font-weight:600;opacity:.9;white-space:nowrap;font-variant-numeric:tabular-nums}
.work-chip.followup{background:#f0fdfa;border-color:#99f6e4;color:#0f766e}
.work-chip.request{background:#eff6ff;border-color:#93c5fd;color:#2563eb}
.work-chip.reply_approval{background:#f5f3ff;border-color:#c4b5fd;color:#6d28d9}
.work-chip.approval{background:#fffbeb;border-color:#fcd34d;color:#b45309}
.work-chip.alert{background:#fef2f2;border-color:#fca5a5;color:#b91c1c}
.work-chip:hover{filter:brightness(.97)}
.work-chip:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

/* 오늘의 할일 표(4칸: 환자명/종 · 보호자 · 주요 질환 · 처리할 업무).
   앞 세 칸은 내용만큼만 쓰고(긴 이름은 줄바꿈) 칩 칸 너비(2×108px)를 먼저 확보한다. 그래도 좁으면 표를 가로로 스크롤한다.
   기존 표 규칙(td span{display:block}, 칸 너비 고정, min-width 920px)을 이 표에서만 덮어쓴다. */
.today-table-scroll{overflow-x:auto}
.today-table-scroll .patient-timeline-table{min-width:520px;table-layout:auto}
.today-table-scroll .patient-timeline-table th,
.today-table-scroll .patient-timeline-table td{padding:10px 8px}
.today-table-scroll .patient-timeline-table th:nth-child(1),
.today-table-scroll .patient-timeline-table td:nth-child(1),
.today-table-scroll .patient-timeline-table th:nth-child(2),
.today-table-scroll .patient-timeline-table td:nth-child(2),
.today-table-scroll .patient-timeline-table th:nth-child(3),
.today-table-scroll .patient-timeline-table td:nth-child(3){width:auto;white-space:normal;overflow-wrap:anywhere}
.today-table-scroll .patient-timeline-table th:nth-child(4),
.today-table-scroll .patient-timeline-table td:nth-child(4){width:232px;min-width:232px;white-space:normal}
.patient-timeline-table td .work-chip span{margin-top:0;color:inherit;display:block}
