.staff-profile-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:1.5rem 0}.staff-profile-tabs[hidden]{display:none}.staff-profile-tabs [role=tab]{min-height:44px}.history-panel{margin-top:1.5rem}.history-panel[hidden]{display:none}.history-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.4rem 0}.history-category{padding:1.5rem 1rem;text-align:left;border:2px solid transparent;border-radius:16px;color:#163e4b;font-weight:700;background:#eef4fa;min-height:80px}.history-category.time_off{background:#eaf4ee}.history-category.expense{background:#fbf1e7}.history-category[aria-pressed=true]{border-color:#117a83;box-shadow:0 2px 6px #153b4515}.history-filters{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.history-period-controls{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end}.history-period-controls[hidden]{display:none}.history-filters label{margin:0;display:flex;flex-direction:column;gap:.35rem}.history-filters input,.history-filters select{min-height:44px;max-width:100%}.history-deadline{background:#eaf5f6;padding:1rem;border-radius:12px;line-height:1.5}.history-list{display:grid;gap:1rem}.history-card{margin:0}.history-card-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.history-card-heading h3{margin:0}.history-status{padding:.35rem .7rem;border-radius:20px;font-size:.85rem;background:#ecf4f3;white-space:nowrap}.history-status.imported{background:#eef0f4;color:#4b5867}.history-status.withdrawn{background:#f0f0f0}.history-status.declined,.history-status.rejected{background:#fcecec}.history-status.pending{background:#fff3df}.history-person{font-weight:600}.history-attention{font-weight:600;color:#87531b}.history-recognition{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.history-totals{display:flex;flex-wrap:wrap;gap:1rem}.history-totals p{padding:.8rem 1rem;background:white;border:1px solid #dce8ed;border-radius:12px}.history-pagination{display:flex;justify-content:center;gap:1rem;margin:1.5rem 0}.history-dialog{box-sizing:border-box;width:min(680px,calc(100% - 2rem));max-height:90dvh;overflow:auto;padding:1.5rem;border:1px solid #c8dde3;border-radius:18px;color:#173e4d}.history-dialog::backdrop{background:#102a3b88}.history-dialog button,.history-dialog .button{margin:.5rem .5rem .5rem 0;min-height:44px}.history-dialog label{display:block;margin:1rem 0}.history-dialog input,.history-dialog textarea,.history-dialog select{box-sizing:border-box;width:100%;padding:.65rem;border:1px solid #b9cdd4;border-radius:8px;font:inherit}.history-dialog fieldset{min-width:0;border:1px solid #d5e5e9;border-radius:10px}.history-details{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:.7rem}.history-details dt{font-weight:600}.history-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.history-day{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap}.history-day label{flex:1;min-width:130px}.history-correction{border-top:1px solid #ddd;margin-top:1rem;padding-top:.5rem}.history-dialog :focus-visible,.history-panel :focus-visible{outline:3px solid #136d8d;outline-offset:3px}@media(max-width:600px){.history-categories{grid-template-columns:1fr;gap:.5rem}.history-category{min-height:56px;padding:1rem}.history-card-heading{flex-wrap:wrap}.history-filters,.history-period-controls{align-items:stretch}.history-period-controls label{flex:1 1 100%}.history-details{grid-template-columns:1fr}.history-details dd{margin-bottom:.6rem}}
.history-dialog [hidden]{display:none}.history-dialog details{margin:1rem 0;padding:.75rem 1rem;border:1px solid #d5e5e9;border-radius:10px}.history-dialog summary{cursor:pointer;font-weight:600}.history-day label:has(textarea){flex-basis:100%}
.history-notes{border-top:1px solid #d9e4e9;margin-top:1.25rem;padding-top:1rem}.history-note-body{white-space:pre-wrap;overflow-wrap:anywhere}.history-note-form{display:grid;gap:.8rem;margin:1rem 0}.history-note-form label{display:grid;gap:.4rem}.history-note-form textarea{width:100%;box-sizing:border-box;min-height:6rem;padding:.65rem;border:1px solid #b9cdd4;border-radius:8px;font:inherit}.history-notes :focus-visible{outline:3px solid #136d8d;outline-offset:3px}
.history-staff-reply{margin:.9rem 0 .9rem 1rem;padding:.8rem 1rem;border-left:3px solid #16818b;background:#edf6f6;border-radius:0 10px 10px 0}.history-inbox{border-top:1px solid #d9e4e9;margin-top:1.2rem;padding-top:1rem}
.history-coverage{border-top:1px solid #d9e4e9;margin-top:1.25rem;padding-top:1rem}.coverage-day{border:1px solid #d5e5e9;border-radius:12px;margin:1rem 0;padding:1rem;background:#f7fbfa}.coverage-day h4{margin:.1rem 0 .7rem}.coverage-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 1rem}.coverage-fields label{margin:.3rem 0}.coverage-day [hidden]{display:none}@media(max-width:600px){.coverage-fields{grid-template-columns:1fr}}
.history-coverage-summary{font-weight:600;color:#185d65;overflow-wrap:anywhere}
.history-unread-replies{color:#a14b19;font-weight:700}
.history-coverage-queue{margin:1.25rem 0;padding:1rem;border:1px solid #cde2df;border-radius:14px;background:#f4faf8}.history-coverage-queue[hidden]{display:none}.history-coverage-queue>.history-card{margin:.8rem 0}
.coverage-availability{margin:1.2rem 0}.coverage-availability h3{margin:0 0 .35rem}.coverage-availability summary{cursor:pointer;font-weight:700}.coverage-availability-form{display:grid;gap:1rem;margin-top:1rem}.coverage-availability-form fieldset{min-width:0;border:1px solid #d5e5e9;border-radius:10px;padding:.8rem 1rem}.coverage-availability-form fieldset:has(>label){display:flex;gap:.6rem 1.4rem;flex-wrap:wrap}.coverage-availability-form label{display:flex;gap:.35rem;align-items:center;margin:.3rem 0}.coverage-availability-form input[type=checkbox]{width:1.1rem;height:1.1rem;flex:none}.coverage-weekly-grid{display:grid;grid-template-columns:minmax(4rem,1fr) 3rem 3rem;gap:.35rem .7rem;align-items:center;max-width:19rem}.coverage-weekly-grid input{justify-self:center}.coverage-exception-row{display:grid;grid-template-columns:minmax(9rem,1fr) auto auto minmax(9rem,1.4fr) auto;gap:.5rem;align-items:end;margin:.5rem 0}.coverage-exception-row label{display:grid;gap:.25rem}.coverage-exception-row input[type=date],.coverage-exception-row input[type=text]{box-sizing:border-box;width:100%;min-height:38px}.coverage-exception-row button{min-height:38px}.coverage-availability :focus-visible{outline:3px solid #136d8d;outline-offset:2px}@media(max-width:650px){.coverage-exception-row{grid-template-columns:1fr 1fr}.coverage-exception-row label:first-child,.coverage-exception-row label:nth-child(4){grid-column:1/-1}}

.coverage-picker{margin:.7rem 0;border:1px solid #bfd9dc;border-radius:10px;background:#fff}.coverage-picker>summary{padding:.6rem .8rem;cursor:pointer;font-weight:700;color:#125f69}.coverage-picker-body{padding:.65rem .8rem;border-top:1px solid #e1ecef;display:grid;gap:.55rem}.coverage-picker-body>label{display:grid;gap:.2rem;margin:0}.coverage-picker-body input,.coverage-picker-body select{min-height:38px;box-sizing:border-box;width:100%}.coverage-picker-body>button{justify-self:start}.coverage-groups{display:grid;gap:.4rem;max-height:23rem;overflow:auto}.coverage-group{border:1px solid #e1ecef;border-radius:8px}.coverage-group>summary{padding:.45rem .6rem;cursor:pointer;font-weight:700}.coverage-person{padding:.55rem .65rem;border-top:1px solid #edf2f3}.coverage-person-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.55rem;align-items:center}.coverage-person-main input{width:1.1rem;height:1.1rem}.coverage-person-main small{display:block;color:#52656b}.coverage-match{font-size:.78rem;border-radius:999px;padding:.18rem .45rem;background:#e4f3ed;color:#235b49;white-space:nowrap}.coverage-match.partial,.coverage-match.outside,.coverage-match.exception{background:#fff2df;color:#754c17}.coverage-match.conflict{background:#fce8e7;color:#842e2b}.coverage-candidate-state{display:block;margin:.2rem 0 0 1.7rem;color:#255665;font-weight:700}.coverage-person-actions{display:flex;gap:.4rem;align-items:end;flex-wrap:wrap;margin:.35rem 0 0 1.7rem}.coverage-person-actions label{margin:0;min-width:10rem;max-width:17rem}.coverage-person-actions button{min-height:36px;margin:0}@media(max-width:600px){.coverage-person-main{grid-template-columns:auto minmax(0,1fr)}.coverage-match{grid-column:2;justify-self:start}}
.time-off-review-dialog,.coverage-review-dialog{box-sizing:border-box;width:min(920px,calc(100vw - 2rem));max-width:920px;max-height:88dvh;padding:0 1.35rem 1.2rem;overflow:auto}.time-off-review-dialog>h2,.coverage-review-dialog>h2{position:sticky;top:0;z-index:4;background:#fff;margin:0 -1.35rem;padding:1rem 1.35rem .7rem;border-bottom:1px solid #d9e5e8;font-size:1.4rem}.time-off-review-dialog .time-off-request-lead{font-weight:700;margin:.85rem 0}.time-off-review-dialog .history-details{gap:.25rem .8rem;margin:.55rem 0}.time-off-review-dialog .history-details dt,.time-off-review-dialog .history-details dd{font-size:.95rem}.time-off-review-dialog .history-coverage{margin-top:.85rem;padding-top:.7rem}.time-off-review-dialog .coverage-day{margin:.65rem 0;padding:.8rem}.history-dialog-footer{position:sticky;bottom:-1.2rem;z-index:4;display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap;margin:1rem -1.35rem -1.2rem;padding:.75rem 1.35rem;background:#fff;border-top:1px solid #cadde1;box-shadow:0 -4px 14px #183b4814}.history-dialog-footer button{margin:0;min-height:40px}.time-off-review-dialog .history-notes{margin-top:1rem}@media(max-width:650px){.time-off-review-dialog,.coverage-review-dialog{width:calc(100vw - .5rem);max-height:96dvh;padding:0 .85rem .8rem;border-radius:10px}.time-off-review-dialog>h2,.coverage-review-dialog>h2{margin:0 -.85rem;padding:.8rem .85rem}.history-dialog-footer{margin:.8rem -.85rem -.8rem;padding:.55rem .85rem;justify-content:stretch}.history-dialog-footer button{flex:1 1 auto}}

.time-off-calendar{margin:1.2rem 0}.time-off-calendar>h3{margin:.2rem 0}.time-off-calendar>p.hint{margin:.4rem 0 1rem}.time-off-calendar-controls{display:flex;align-items:end;gap:.7rem 1rem;flex-wrap:wrap;margin-bottom:.8rem}.time-off-calendar-controls label{display:grid;gap:.3rem;margin:0;min-width:9rem;font-weight:600}.time-off-calendar-controls select{box-sizing:border-box;min-height:44px;max-width:100%;padding:.45rem;border:1px solid #b9cdd4;border-radius:8px;font:inherit;background:#fff}.time-off-calendar-navigation{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.time-off-calendar-navigation button{min-height:44px;margin:0}.time-off-calendar-range{min-width:9rem;text-align:center;color:#173e4d}.time-off-calendar-notice{min-height:1.4rem;color:#395965}.time-off-calendar-summary{font-weight:700;color:#185d65}.time-off-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(10.5rem,1fr));gap:.6rem;overflow-x:auto;padding:.15rem .1rem .8rem}.time-off-calendar-day{min-width:0;border:1px solid #d5e5e9;border-radius:12px;background:#fff;padding:.7rem}.time-off-calendar-day>h3{font-size:1rem;margin:0 0 .35rem;color:#173e4d}.time-off-calendar-counts{margin:.1rem 0 .6rem;padding:.35rem .45rem;border-radius:7px;background:#eef6f7;color:#185d65;font-size:.84rem;font-weight:700}.time-off-calendar-group{display:grid;gap:.35rem;margin:.65rem 0 0;padding-top:.55rem;border-top:1px solid #e1ecef}.time-off-calendar-group>h4{margin:0;font-size:.82rem;letter-spacing:.03em;text-transform:uppercase;color:#52656b}.time-off-calendar-request,.time-off-calendar-google{box-sizing:border-box;display:block;width:100%;padding:.55rem .6rem;border:1px solid #d1e2e4;border-left:4px solid #137c85;border-radius:8px;background:#f5faf9;color:#173e4d;font:inherit;font-size:.88rem;line-height:1.35;text-align:left;text-decoration:none;white-space:pre-line;overflow-wrap:anywhere}.time-off-calendar-request{cursor:pointer;min-height:44px}.time-off-calendar-request.pending{border-left-color:#af6b19;background:#fff8eb}.time-off-calendar-request.approved{border-left-color:#27845d;background:#f1faf5}.time-off-calendar-request.declined{border-left-color:#8995a0;background:#f4f5f6}.time-off-calendar-google{border-left-color:#8b63a6;background:#f8f4fb}.time-off-calendar-google:hover{text-decoration:underline}.time-off-calendar-request:focus-visible,.time-off-calendar-google:focus-visible,.time-off-calendar-controls :focus-visible{outline:3px solid #136d8d;outline-offset:2px}@media(max-width:800px){.time-off-calendar-controls{align-items:stretch}.time-off-calendar-controls label{flex:1 1 9rem}.time-off-calendar-navigation{flex:1 1 100%}.time-off-calendar-range{order:-1;flex:1 1 100%;text-align:left}.time-off-calendar-grid{grid-template-columns:1fr;overflow-x:visible}.time-off-calendar-day{padding:.8rem}.time-off-calendar-grid.month .time-off-calendar-day{display:none}.time-off-calendar-grid.month .time-off-calendar-day.has-entries{display:block}}
.history-time-off-modes{display:flex;gap:.5rem;flex-wrap:wrap}.history-time-off-modes[hidden]{display:none}.history-time-off-modes [aria-pressed=true]{background:#087f9e;color:#fff}
.time-off-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));overflow-x:visible}
@media(max-width:1160px){.time-off-calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.time-off-calendar-grid.month .time-off-calendar-day{display:none}.time-off-calendar-grid.month .time-off-calendar-day.has-entries{display:block}}
@media(max-width:800px){.time-off-calendar-grid{grid-template-columns:1fr}}
.time-off-calendar-grid{grid-template-columns:1fr}
.time-off-calendar-week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.6rem;min-width:0}
.time-off-calendar-week.columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.time-off-calendar-week.columns-7{grid-template-columns:repeat(7,minmax(0,1fr))}
.time-off-calendar-controls .time-off-calendar-weekend-toggle{display:flex;align-items:center;gap:.5rem;min-height:44px;min-width:0;cursor:pointer}
.time-off-calendar-weekend-toggle input{width:1.15rem;height:1.15rem;flex:none}
@media(max-width:1160px){.time-off-calendar-week,.time-off-calendar-week.columns-6,.time-off-calendar-week.columns-7{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.time-off-calendar-week,.time-off-calendar-week.columns-6,.time-off-calendar-week.columns-7{grid-template-columns:1fr}}
