/* Residents suite, Daily Jobs tab (Phase 2b): each person's day, team view and rounds.
   Spec: Fix Mds/residents-suite-phase2b-spec.md §3. Builds on residents.css and maintenance.css (.mt-wrap, .mt-tabs,
   .mt-list, .mt-panel, .mt-form). Shell tokens only (design rule, CLAUDE.md "New screens match the app's design"). */

.dj-wrap { max-width: 960px; }
.dj-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dj-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dj-bar .btn, .dj-job-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.dj-bar .btn svg { width: 16px; height: 16px; }
.dj-daypick { display: inline-flex; align-items: center; gap: 4px; }
.dj-icon { padding-left: 8px; padding-right: 8px; }

.dj-progress { display: flex; align-items: center; gap: 12px; }
.dj-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg3); overflow: hidden; }
.dj-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.dj-group { display: flex; flex-direction: column; gap: 8px; }
.dj-group-head { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.dj-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--bg3); color: var(--text2); font-size: 11.5px; text-align: center; font-family: inherit; }
.dj-group-body { display: flex; flex-direction: column; gap: 8px; }

.dj-job, .dj-wo {
  background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-xs); padding: 12px 14px; color: var(--text);
}
.dj-job { display: flex; flex-direction: column; gap: 6px; }
.dj-job.is-done { opacity: .7; }
.dj-wo { font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; width: 100%; }
.dj-wo:hover { border-color: var(--accent); }
.dj-wo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dj-job-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dj-job-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.dj-sub { font-size: 12px; color: var(--text2); }
.dj-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.dj-badge svg { width: 12px; height: 12px; }
.dj-late { background: var(--danger-soft); color: var(--danger); }
.dj-late-text { color: var(--danger); font-weight: 700; }

.dj-check { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dj-check label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.dj-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.dj-check input:checked + span { color: var(--text2); text-decoration: line-through; }
.dj-job-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dj-done-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.dj-done-tag svg { width: 15px; height: 15px; }
.dj-photo-tag { font-size: 12.5px; color: var(--text2); }

.dj-team .mt-row, .dj-rounds .mt-row { grid-template-columns: minmax(200px, 2fr) repeat(4, 1fr); }
.dj-who { display: flex; flex-direction: column; }
.mt-row-main { display: flex; flex-direction: column; min-width: 0; }
.dj-days { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.dj-days legend { font-size: 12.5px; color: var(--text2); padding: 0; margin-bottom: 4px; width: 100%; }

@media (max-width: 768px) {
  .dj-bar { flex-direction: column; align-items: stretch; }
  .dj-daypick { justify-content: space-between; }
  .dj-daypick .btn:not(.dj-icon) { flex: 1; justify-content: center; }
  .dj-bar-right { justify-content: stretch; }
  .dj-bar-right .btn, .dj-bar-right .mt-tabs { flex: 1; justify-content: center; }
  .dj-team .mt-row, .dj-rounds .mt-row { grid-template-columns: 1fr; }
  .dj-job-actions .btn { flex: 1; justify-content: center; }
}
