/* Staffing extends the member system's existing type, colour and control tokens. */
.staffing-review-filter{max-width:360px;margin:20px 0 0;font-size:.85rem}.staffing-summary-counts dd{white-space:nowrap}
.staffing-home-deadline{display:flex;flex-wrap:wrap;gap:4px 18px}.staffing-home-deadline>strong{color:var(--blue)}.staffing-home-deadline>span{font-weight:600}
.attendance-subnav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:4px;background:var(--band);border-radius:8px;width:fit-content;max-width:100%}
.attendance-subnav button{min-height:44px;padding:8px 16px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-weight:600;font-size:.88rem}
.attendance-subnav button:hover{color:var(--ink);background:var(--hover)}.attendance-subnav button[aria-current=page]{background:var(--surface);color:var(--blue);border-color:var(--line)}
.staffing{min-width:0}.staffing .section-heading h2{margin-bottom:6px}.staffing .section-heading p{margin-bottom:0}.staffing-event-select{min-width:190px;max-width:280px;font-size:.85rem}
.staffing-summary{padding:20px 24px;background:var(--blue-soft);border:1px solid var(--color-border);border-radius:8px;margin:20px 0}.staffing-summary>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.staffing-summary>p{font-size:.9rem;margin:10px 0 16px;max-width:800px}.staffing-summary-counts{display:flex;gap:32px;margin:0}.staffing-summary-counts>div{display:flex;gap:10px;align-items:baseline}.staffing-summary-counts dt{color:var(--muted);font-size:.8rem}.staffing-summary-counts dd{font-weight:700;font-variant-numeric:tabular-nums;margin:0;font-size:1.1rem}
.staffing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 6px}.staffing-toolbar>.help{margin:0}.staffing-toolbar .button{font-size:.83rem}.staffing-sync{margin:0 0 16px;font-size:.77rem}.staffing [data-staffing-error]:empty{display:none}.staffing [data-staffing-error]{margin:12px 0}.staffing-leave-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.staffing-leave-banner p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.staffing-leave-banner small{color:var(--muted)}.staffing-leave-banner>.button{flex-shrink:0;font-size:.83rem}
.staffing-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.staffing-day{min-width:0}.staffing-day>h3{font-size:1rem;margin:0;padding:12px 14px;border:1px solid var(--line);border-bottom:0;background:var(--band);border-radius:8px 8px 0 0}.staffing-slot{padding:18px 14px;background:var(--surface);border:1px solid var(--line);border-bottom:0;min-height:270px;display:flex;flex-direction:column}.staffing-slot:last-child{border-bottom:1px solid var(--line);border-radius:0 0 8px 8px}.staffing-slot.is-mine{background:var(--blue-soft);box-shadow:inset 3px 0 0 var(--blue)}.staffing-slot-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.staffing-slot h4{font-size:.91rem;margin:0;line-height:1.5}.staffing-capacity{font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap}.staffing-capacity span{font-weight:400;color:var(--muted);font-size:.78rem}.staffing-cutoff{font-size:.73rem;color:var(--muted);margin:7px 0 12px}.staffing-participants{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;align-content:start;min-height:64px}.staffing-participants li{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;font-size:.82rem;overflow-wrap:anywhere}.staffing-participants small{font-size:.67rem;color:var(--muted)}.staffing-participants .is-self{color:var(--blue);font-weight:600}.staffing-slot-actions{margin-top:auto}.staffing-slot-actions .button{font-size:.78rem;padding:8px 10px;min-height:44px}.staffing-slot-actions>.button{width:100%}.staffing-slot-actions .row-actions{gap:6px}.staffing-slot-actions .row-actions>.button{flex:1}.staffing-own-note{font-size:.77rem;color:var(--blue);margin:0 0 8px}.staffing button:disabled{cursor:default}.staffing-day-tabs{display:none}
.staffing-rules,.staffing-overview{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}.staffing-rules summary,.staffing-overview>summary,.staffing-history summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:.87rem;font-weight:600}.staffing-rules ul{margin:8px 0;padding-left:22px;color:var(--muted);font-size:.84rem}.staffing-rules li+li{margin-top:8px}.staffing-overview .staffing-days{margin-top:12px}.staffing-history{margin-top:16px}.staffing-history ol{list-style:none;margin:0;padding:0}.staffing-history li{border-top:1px solid var(--line);padding:14px 0}.staffing-history li>div{display:flex;justify-content:space-between;gap:12px;font-size:.83rem}.staffing-history li>div>span,.staffing-history small{color:var(--muted);font-size:.75rem}.staffing-history p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem}
.staffing-home{display:flex;align-items:center;justify-content:space-between;gap:24px}.staffing-home>div{min-width:0}.staffing-home-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.staffing-home h2{font-size:1.16rem;margin:0}.staffing-home p{margin:10px 0 6px;font-size:.87rem}.staffing-home small{color:var(--muted);font-size:.77rem}.staffing-home>.button{flex-shrink:0;font-size:.86rem}
.staffing-archive{margin-top:24px}.staffing-archive>.section-heading{margin-bottom:0}.staffing-record{padding:22px 0;border-top:1px solid var(--line);margin-top:20px}.staffing-record:last-child{padding-bottom:0}.staffing-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.staffing-record h3{margin:0;font-size:1rem}.staffing-record>.help{margin:10px 0 14px}.staffing-record-bookings{list-style:none;margin:0;padding:0}.staffing-record-bookings li{padding:12px 0;border-top:1px solid var(--line)}.staffing-record-bookings li>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.85rem}.staffing-record-bookings p{font-size:.83rem;margin:7px 0;white-space:pre-wrap}.staffing-record-bookings small{color:var(--muted);font-size:.74rem}
.staffing-management-section{margin:28px 0}.staffing-management-section>h3{margin-bottom:14px}.staffing-management-section td small{display:block;color:var(--muted)}.staffing-attendance-list{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:0 20px}.staffing-attendance-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0}.staffing-attendance-row+.staffing-attendance-row{border-top:1px solid var(--line)}.staffing-attendance-row>div:first-child{min-width:0}.staffing-attendance-row>div>strong{margin-right:10px}.staffing-attendance-row p{margin:6px 0 0;font-size:.84rem;overflow-wrap:anywhere}.staffing-attendance-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}.staffing-attendance-actions .button{font-size:.78rem;padding:8px 10px}.staffing-error h2{margin-bottom:12px}
@media(max-width:1000px){.staffing-days{gap:10px}.staffing-slot{padding:16px 12px}.staffing-slot-heading{flex-wrap:wrap;gap:4px}.staffing-participants{gap:4px;grid-template-columns:1fr}.staffing-slot{min-height:320px}.staffing-attendance-row{gap:14px}.staffing-attendance-actions .row-actions{flex-direction:column;align-items:stretch}.staffing-summary-counts{gap:20px}}
@media(max-width:680px){.attendance-subnav{width:100%;margin-bottom:20px;gap:4px}.attendance-subnav button{flex:1;padding:8px 8px;font-size:.8rem}.staffing .section-heading{align-items:stretch;flex-direction:column;gap:16px}.staffing .section-heading h2{font-size:1.25rem}.staffing-event-select{max-width:none;width:100%}.staffing-summary{padding:18px;margin:16px 0}.staffing-summary>p{font-size:.84rem}.staffing-summary-counts{gap:10px;justify-content:space-between;flex-wrap:wrap}.staffing-summary-counts>div{gap:6px}.staffing-summary-counts dt{font-size:.74rem}.staffing-toolbar{align-items:stretch;flex-direction:column;gap:10px;margin-top:18px}.staffing-toolbar>.row-actions>.button{flex:1}.staffing-toolbar>.help{font-size:.77rem}.staffing-sync{font-size:.73rem;margin-top:10px}.staffing-leave-banner{flex-direction:column;gap:12px}.staffing-leave-banner>.button{width:100%}.staffing-day-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 12px}.staffing-day-tabs button{min-height:44px;padding:8px 4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:.8rem;font-weight:600}.staffing-day-tabs button[aria-pressed=true]{background:var(--blue-soft);border-color:var(--color-border);color:var(--blue)}.staffing-days{display:block}.staffing-day[data-selected=false]{display:none}.staffing-day>h3{padding:12px 16px;font-size:.93rem}.staffing-slot{min-height:0;padding:18px 16px}.staffing-slot-heading{flex-wrap:nowrap;gap:12px}.staffing-slot h4{font-size:.97rem}.staffing-participants{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0;margin-bottom:14px;gap:8px}.staffing-participants li{font-size:.84rem}.staffing-slot-actions>.button{width:auto;min-width:150px}.staffing-slot-actions .row-actions{justify-content:flex-start}.staffing-slot-actions .row-actions>.button{flex:0 1 auto;min-width:95px}.staffing-cutoff{font-size:.77rem}.staffing-home{align-items:stretch;flex-direction:column;gap:16px}.staffing-home>.button{width:100%}.staffing-home-heading{gap:8px}.staffing-home h2{font-size:1.12rem}.staffing-home p{font-size:.84rem}.staffing-record-heading,.staffing-record-bookings li>div{align-items:flex-start;flex-direction:column;gap:7px}.staffing-record-heading{flex-direction:row}.staffing-history li>div{flex-direction:column;gap:3px}.staffing-attendance-list{padding:0 16px}.staffing-attendance-row{flex-direction:column;gap:12px}.staffing-attendance-actions{align-items:flex-start;width:100%;gap:10px}.staffing-attendance-actions .row-actions{flex-direction:row;width:100%}.staffing-attendance-actions .button{flex:1}.staffing-management-section{margin:24px 0}.staffing-rules{margin-top:20px}.staffing-rules ul{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.staffing *{scroll-behavior:auto}}
@media(max-width:680px){.staffing-review-filter{max-width:none;width:100%}.staffing-summary-counts>div{flex-basis:calc(50% - 10px)}}
