.schedule-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:18px 0 10px}
.schedule-filter .field{margin:0;min-width:0;flex:1 1 160px}
.schedule-filter .schedule-query{flex:2 1 280px}
.schedule-filter :is(input,select){width:100%;height:39px;min-width:0}
.schedule-filter-actions{display:flex;align-items:center;gap:8px}
.schedule-filter-actions .button{height:39px;white-space:nowrap}
.schedule-filter-count{font-size:12px;color:var(--muted);margin:0 0 18px;text-align:center}
.schedule-toolbar .spreadsheet-button{width:39px;height:39px;min-height:39px;min-width:39px}
@media(max-width:680px){.schedule-filter .field{flex-basis:calc(50% - 6px)}.schedule-filter .schedule-query,.schedule-filter-actions{flex-basis:100%}.schedule-filter-actions .button{flex:1}.schedule-filter-count{font-size:11px;line-height:1.7}}
.schedule-pattern-picker{min-width:0;margin-bottom:24px}.schedule-pattern-controls{display:flex;align-items:flex-end;gap:10px}.schedule-pattern-controls>.field{flex:1;min-width:0;margin:0}.schedule-pattern-controls select{width:100%;min-width:0;height:42px}.schedule-pattern-controls>.button{height:42px;white-space:nowrap}.schedule-pattern-list{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.schedule-pattern-list[hidden]{display:none}.schedule-pattern-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #dfe7f1;border-radius:8px;background:#f7f9fc;min-width:0}.schedule-pattern-item>span{min-width:0;overflow-wrap:anywhere}.schedule-pattern-item strong{font-size:13px}.schedule-pattern-item small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.schedule-pattern-item>.button{flex-shrink:0}.schedule-pattern-status{font-size:12px;color:var(--muted);margin:10px 0 0}@media(max-width:680px){.schedule-pattern-list{grid-template-columns:1fr}.schedule-pattern-item{padding:10px 12px}.schedule-pattern-controls{gap:8px}}

.schedule-filter-actions{gap:var(--ui-space-actions,8px);flex-wrap:wrap}
.schedule-filter-actions .button{height:auto;min-height:var(--ui-control-height,39px)}
.schedule-pattern-controls{gap:var(--ui-space-actions,8px)}
.schedule-pattern-controls>.button{height:auto;min-height:44px}
.schedule-filter-count,.schedule-pattern-status{line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}

.schedule-calendar-panel{min-width:0;overflow:hidden;background:#fff;border:1px solid #dce5f0;border-radius:13px;box-shadow:0 3px 12px #203f6505;margin:20px 0 26px}
.schedule-calendar-panel>.calendar-period{margin:0;padding:16px 18px;background:#f8fafd;border-bottom:1px solid #e1e8f1;color:#314d70;font-size:15px;line-height:1.6}
.schedule-calendar-panel>.schedule-calendar{margin:0;border:0;border-radius:0;width:100%;min-width:0}
.schedule-calendar-panel>.schedule-legend-row{margin:0;padding:15px 18px;border-top:1px solid #dce5f0;gap:14px;background:#fff}
.schedule-calendar-panel .schedule-legend{gap:9px;align-items:center;color:#455a76;font-size:12px;line-height:1.6}
.schedule-calendar-panel .schedule-legend>span{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #e0e6ef;border-left:4px solid #91a1b9;border-radius:6px;background:#f6f8fb;color:#3c4e66;white-space:nowrap;font-weight:600}
.schedule-calendar-panel .schedule-legend>.state-waitlist{border-left-color:#9a84c1;background:#f8f4ff;color:#6d518c}.schedule-calendar-panel .schedule-legend>.state-pending{border-left-color:#dba23d;background:#fff9eb;color:#805b21}.schedule-calendar-panel .schedule-legend>.state-accepted{border-left-color:#43a8a0;background:#f0fcf8;color:#256c62}.schedule-calendar-panel .schedule-legend>.state-rejected{border-left-color:#da7281;background:#fff3f4;color:#a43e50}.schedule-calendar-panel .schedule-legend>.state-confirmed{border-left-color:#4881f0;background:#edf4ff;color:#2b5faf}
.schedule-calendar-panel .schedule-legend-exports{width:auto;margin-left:auto;flex:none;justify-content:flex-end}
.calendar-entry .schedule-entry-person{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px}
.calendar-entry .schedule-entry-person strong{min-width:0;overflow-wrap:anywhere}
.calendar-entry .schedule-entry-group{font-size:10px;font-weight:500;opacity:.8;overflow-wrap:anywhere}
.calendar-entry .schedule-entry-planned{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.calendar-entry .schedule-entry-punches{display:flex;flex-wrap:wrap;gap:2px 9px;margin-top:4px;padding-top:5px;border-top:1px solid #4881f026;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.calendar-entry .schedule-entry-total{display:block;font-size:11px;font-weight:700;line-height:1.6;font-variant-numeric:tabular-nums}
.calendar-entry .schedule-entry-actual-private{display:block;margin-top:4px;font-size:10px;line-height:1.5;opacity:.8}
@media(max-width:680px){.schedule-calendar-panel>.calendar-period{padding:13px}.schedule-calendar-panel>.schedule-legend-row{padding:13px;gap:13px}.schedule-calendar-panel .schedule-legend{gap:7px;font-size:11px}.schedule-calendar-panel .schedule-legend>span{padding:5px 8px}.schedule-calendar-panel .schedule-legend-exports{width:100%}}

/* The three attendance lists share compact filter rows and independent paging. */
.attendance-report-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0}.attendance-report-filters .field{margin:0;flex:1 1 145px;min-width:0;max-width:190px}.attendance-report-filters .report-query{flex:2 1 250px;max-width:none}.attendance-report-filters :is(input,select){width:100%;height:39px;min-width:0}.attendance-report-filters .list-page-size{flex:0 1 140px}.report-query-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.report-query-actions .button{min-height:39px;white-space:nowrap}.calendar-plans-card{min-width:0;margin-top:28px}.calendar-plans-card>.calendar-list-heading{margin-top:0}.calendar-plans-card>.dialog-copy{margin-bottom:14px}.schedule-report-details{margin-top:26px;padding-top:20px;border-top:1px solid #e1e8f1}.schedule-report-details>summary{cursor:pointer;font-size:13px;line-height:1.8;color:#3d5876}.schedule-report-details>summary span{margin-left:8px;color:var(--muted);font-size:12px}.schedule-report-detail-controls{display:flex;justify-content:flex-end;margin:14px 0 12px}.schedule-report-detail-controls .field{margin:0;min-width:140px}.schedule-report-detail-controls select{height:39px}@media(max-width:700px){.attendance-report-filters .field{max-width:none;flex:1 1 calc(50% - 6px)}.attendance-report-filters .report-query,.attendance-report-filters .report-query-actions{flex-basis:100%}.attendance-report-filters .report-query-actions .button{flex:1}.schedule-report-details{margin-top:22px;padding-top:18px}}

/* Participant selection and staged assignments stay local to their dialogs. */
#modal-form [data-participant-picker] .participant-selected-toolbar{align-items:center;gap:8px;margin:0 0 12px}
#modal-form [data-participant-picker] [data-participant-count]{display:inline-flex;align-items:center;min-height:40px;margin-left:auto;font-size:12px;line-height:1.5;color:var(--muted)}
#modal-form [data-participant-picker] [data-participant-panel]>.popup-search-controls{margin:0 0 12px}
#modal-form [data-participant-picker] .participant-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0 0;padding-top:12px;border-top:1px solid #dce5ef}
#modal-form [data-participant-picker] :is(.participant-page-controls,.participant-confirm-actions){display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
#modal-form [data-participant-picker] .participant-confirm-actions{margin-left:auto;justify-content:flex-end}
#modal-form [data-participant-picker] :is(.participant-selected-toolbar,.participant-pagination) .button{display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;min-width:52px;padding:0 12px;box-sizing:border-box;line-height:1.4;white-space:nowrap}
#modal-form [data-participant-picker] .participant-pagination .participant-select-all{flex:0 0 40px;width:40px;min-width:40px;padding:0}
#modal-form [data-participant-picker] .participant-select-all svg{display:block;width:18px;height:18px;flex:none}
#modal-form [data-participant-picker] .participant-page-info{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:48px;padding:0 4px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center}
#saved-assignments>p{margin:0 0 12px;line-height:1.8}
#saved-assignments .schedule-assignment-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-width:140px;max-width:260px;margin-inline:auto}
#saved-assignments .schedule-assignment-actions .button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-height:36px;min-width:58px;max-width:100%;padding:0 10px;box-sizing:border-box;line-height:1.4;white-space:nowrap}
@media(max-width:600px){
 #modal-form [data-participant-picker] .participant-pagination{gap:12px}
 #modal-form [data-participant-picker] .participant-page-controls{flex:1 0 100%;justify-content:center}
 #modal-form [data-participant-picker] .participant-confirm-actions{flex:1 0 100%;margin-left:0}
 #modal-form [data-participant-picker] .participant-confirm-actions .button{flex:1}
}

.schedule-candidate-check{padding:16px;margin:16px 0;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt,#f8fafd)}
.schedule-candidate-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px 16px}
.schedule-candidate-heading>div{min-width:0;flex:1 1 230px}
.schedule-candidate-heading .dialog-copy{margin:6px 0 0}
.schedule-candidate-heading .button{min-height:var(--ui-control-height,39px);white-space:nowrap}
.schedule-candidate-check [role=status]:not(:empty){margin-top:12px;line-height:1.6}
.schedule-candidate-results{margin-top:10px;max-height:19rem;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface,#fff)}
.schedule-candidate-results table{width:100%;min-width:0;table-layout:fixed}
.schedule-candidate-results :is(th,td){padding:8px 12px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.schedule-candidate-results th:nth-child(-n+2){width:7rem}
.schedule-candidate-results ul{margin:0;padding:0;list-style:none}
.schedule-candidate-results li+li{margin-top:6px}
@media(max-width:600px){
 .schedule-candidate-results :is(th,td){padding:8px 7px}
 .schedule-candidate-results th:first-child{width:20%}
 .schedule-candidate-results th:nth-child(2){width:30%}
}
