.tf-duty { min-width:0; }
.tf-duty-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.tf-duty-heading h2, .tf-duty-heading h3, .tf-duty-heading p { margin:0; }
.tf-duty-heading p { margin-top:6px; }
.tf-duty .row-actions { display:flex; flex-wrap:wrap; gap:8px; }
.tf-duty-filter, .tf-duty-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:end; }
.tf-duty-filter { grid-template-columns:minmax(180px,2fr) repeat(2,minmax(130px,1fr)) auto; margin:24px 0; }
.tf-duty .field, .tf-duty select, .tf-duty input { min-width:0; max-width:100%; box-sizing:border-box; }
.tf-duty-editor { border:1px solid #cbdcf4; background:#f7faff; border-radius:12px; padding:20px; margin:20px 0; }
.tf-duty-editor fieldset { min-width:0; border:0; padding:0; margin:16px 0 0; }
.tf-duty-editor .row-actions { margin-top:20px; }
.tf-duty-section { border-top:1px solid #e4e8ee; padding:16px 0; }
.tf-duty-section summary { cursor:pointer; font-weight:600; }
.tf-duty-section .tf-admin-table-wrap { margin-top:16px; }
.tf-duty-list-heading { margin:20px 0 12px; }
.tf-duty-records { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.tf-duty-record { border:1px solid #e4e8ee; border-radius:12px; padding:20px; min-width:0; overflow-wrap:anywhere; background:white; }
.tf-duty-record p { margin:12px 0; }
.tf-duty-status { color:#246ce5; background:#edf3fd; padding:4px 10px; border-radius:6px; font-size:12px; }
.tf-duty-status.completed { color:#247658; background:#eaf5ef; }
.tf-duty-status.cancelled { color:#626b77; background:#f0f2f5; }
.tf-duty-history { margin-top:16px; padding-top:12px; border-top:1px solid #e4e8ee; }
.tf-duty-history summary { color:#626b77; font-size:13px; cursor:pointer; }
.tf-duty-notice { padding:12px 16px; background:#edf3fd; border-radius:8px; overflow-wrap:anywhere; }
.tf-duty-notice.error { color:#ad372e; background:#faeceb; }
.tf-duty-empty { color:#626b77; padding:24px 0; }
@media(max-width:850px) { .tf-duty-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }.tf-duty-records { grid-template-columns:1fr; } }
@media(max-width:480px) { .tf-duty-filter,.tf-duty-grid { grid-template-columns:1fr; }.tf-duty-editor,.tf-duty-record { padding:16px; } }

.tf-duty-editor .tf-duty-people { grid-column:1 / -1; margin:0; padding:12px; border:1px solid var(--line); border-radius:8px; max-height:260px; overflow:auto; }
.tf-duty-people label { display:flex; align-items:center; gap:10px; padding:8px 0; }
.tf-duty-people input { width:18px; height:18px; margin:0; flex:none; }
.tf-duty-people small { color:var(--muted); }
