/* The Peeloff list, Down the Line (docs/peeloff-list-redesign-plan.md step 1, owner choice 2026-10-17).
   Tomorrow reads top to bottom like the email: positions on a forest-green spine, condensed names, the room as the
   largest text, and an amber gap where a room is still needed. Step 1 restyles the computer width; phones keep their
   layout. Since 2026-10-18 it is one list in published order, with no headings. */
:root{
 --pl-forest:#174a43;--pl-forest-soft:#7fa69c;--pl-ink:#13201d;--pl-muted:#5d6e68;--pl-faint:#8a9a94;
 --pl-line:#e2e8e4;--pl-row:#ffffff;--pl-ground:#f4f6f3;--pl-lime:#d7f68b;--pl-lime-ink:#2c3d10;
 --pl-amber:#9a5b00;--pl-amber-bg:#fff3d6;--pl-amber-line:#e2b25a;--pl-good:#2f7a52;
}

/* All widths: the status line and the MEO box's word (shown as a pill on a computer). */
#staff-planning .list-status{margin:3px 0 0;font-size:14px;font-weight:650;color:var(--pl-amber)}
#staff-planning .list-status.is-done{color:var(--pl-good)}
#staff-planning .list-status:empty{display:none}
.meo-pill span{display:none}
.meo-off{color:var(--pl-muted)}
.list-pos{font-weight:700;color:var(--pl-muted)}
/* "MEO 1", "MEO 2"… shows in the position cell from a tablet up; only phones (which hide that cell on MEO rows) read it in the
   room cell. */
@media(min-width:601px){#staff-planning .meo-tag{display:none}}
@media(max-width:1059px){#staff-planning .list-status:not(:empty){display:block}}

@media(min-width:1060px){
 #staff-planning .list-help{display:none}
 .assignment-table.peeloff-list{display:block;min-width:0;width:100%;border-collapse:separate;font-variant-numeric:tabular-nums}
 .assignment-table.peeloff-list thead{display:none}
 .assignment-table.peeloff-list tbody{display:block}
 .assignment-table.peeloff-list tr[data-target-kind]{display:grid;grid-template-columns:104px minmax(110px,.9fr) minmax(150px,1.7fr) minmax(90px,.75fr) 150px;align-items:center;column-gap:14px;min-height:44px;padding:0 6px 0 0;background:var(--pl-row);border-bottom:1px solid var(--pl-line)}
 .assignment-table.peeloff-list tr[data-target-kind]>td{padding:3px 0;border:0;height:auto;min-width:0;background:transparent}

 /* The spine: a line down the right edge of the position cell with a dot for each person. Going home, MEOs and people
    away are dotted (no peeloff position); rows shown at the end (data-last) have no line; the bottom of the peeloff is heavier, with square stops. */
 .assignment-table.peeloff-list tr[data-target-kind]>td:first-child{align-self:stretch;display:flex;align-items:center;justify-content:flex-end;padding-right:22px;position:relative;
  background:linear-gradient(var(--pl-forest),var(--pl-forest)) right 9px top 0/2px 100% no-repeat}
 .assignment-table.peeloff-list tr[data-target-kind]>td:first-child::after{content:"";position:absolute;right:5px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:var(--pl-forest);box-shadow:0 0 0 3px var(--pl-row)}
 .assignment-table.peeloff-list tr:is([data-section=going],[data-section=meo])>td:first-child{background:repeating-linear-gradient(var(--pl-forest-soft) 0 3px,transparent 3px 7px) right 9px top 0/2px 100% no-repeat}
 .assignment-table.peeloff-list tr:is([data-section=going],[data-section=meo])>td:first-child::after{background:var(--pl-row);border:2px solid var(--pl-forest-soft);box-sizing:border-box}
 .assignment-table.peeloff-list tr[data-section=bottom]>td:first-child{background-size:4px 100%;background-position:right 8px top 0}
 .assignment-table.peeloff-list tr[data-section=bottom]>td:first-child::after{border-radius:2px;width:12px;height:12px;margin-top:-6px;right:4px}
 /* People away stay in their place (one list, owner 2026-10-18): dotted like MEO rows, so the line stays unbroken. */
 .assignment-table.peeloff-list tr[data-section=out]>td:first-child{background:repeating-linear-gradient(var(--pl-forest-soft) 0 3px,transparent 3px 7px) right 9px top 0/2px 100% no-repeat}
 .assignment-table.peeloff-list tr[data-section=out]>td:first-child::after{background:var(--pl-row);border:2px solid var(--pl-forest-soft);box-sizing:border-box}
 /* The rows at the end are not part of the peeloff: no line, no dot (one-list review 1). */
 .assignment-table.peeloff-list tr[data-last]>td:first-child{background:none}
 .assignment-table.peeloff-list tr[data-last]>td:first-child::after{display:none}

 /* Position: a quiet label until hover or focus (the list stays the editor; the select is unchanged). */
 .assignment-table.peeloff-list .staff-entry{justify-content:flex-end}
 .assignment-table.peeloff-list select.role{font-weight:700;font-stretch:80%;font-size:14px!important;color:var(--pl-forest);text-align:right;text-align-last:right;max-width:100%;min-width:0;text-overflow:ellipsis}
 .assignment-table.peeloff-list tr[data-target-kind]>td:first-child>*{min-width:0;max-width:100%}
 /* A volunteer's tag sits under the position, as before the redesign. */
 .assignment-table.peeloff-list tr[data-target-kind]>td:first-child{flex-wrap:wrap;align-content:center;row-gap:2px}
 .assignment-table.peeloff-list .volunteer-tag{flex-basis:100%;text-align:right;white-space:nowrap}
 .assignment-table.peeloff-list .list-pos{font-stretch:80%;font-size:14px;color:var(--pl-muted)}

 /* Name: condensed, the anchor of the row. */
 .assignment-table.peeloff-list input.name{font-size:16px;font-weight:700;font-stretch:78%;color:var(--pl-ink);background:transparent;border-color:transparent}
 .assignment-table.peeloff-list input.name:hover{border-color:var(--pl-line)}
 .assignment-table.peeloff-list input.name:focus{background:#fff;border-color:var(--pl-forest-soft)}

 /* Room: the largest running text. A typed or picked room reads as text; the box shows on hover or focus. */
 .assignment-table.peeloff-list input[data-staff=assignment]{font-size:15px;font-weight:600;color:var(--pl-ink);background:transparent;border-color:transparent;box-shadow:none}
 .assignment-table.peeloff-list input[data-staff=assignment]:hover{border-color:var(--pl-line)}
 .assignment-table.peeloff-list input[data-staff=assignment]:focus{background:#fff;border-color:var(--pl-forest-soft)}
 .assignment-table.peeloff-list input[data-staff=assignment]::placeholder{color:var(--pl-faint);font-weight:500;font-size:13px}

 /* The gap: a person with no room. Click it to choose one; type in the box beside it. */
 .assignment-table.peeloff-list button[data-pick-room=md][data-gap]{flex:0 0 auto;min-height:30px;padding:3px 11px;border:1.5px dashed var(--pl-amber-line);border-radius:7px;background:var(--pl-amber-bg);color:var(--pl-amber);font:inherit;font-size:13px;font-weight:700;cursor:pointer;opacity:1}
 .assignment-table.peeloff-list button[data-pick-room=md][data-gap]::before{content:"";display:inline-block;width:7px;height:7px;margin:0 7px 1px 0;border-radius:50%;background:currentColor;vertical-align:middle}
 .assignment-table.peeloff-list button[data-pick-room=md][data-gap]:hover{background:#ffe9b8}
 .assignment-table.peeloff-list button[data-pick-room=md]:focus-visible{outline:3px solid var(--pl-forest);outline-offset:2px}
 .assignment-table.peeloff-list tr:has(button[data-gap])>td:first-child::after{background:var(--pl-row);border:2.5px solid var(--pl-amber-line);box-sizing:border-box}

 /* Time or note: quiet, typed in place. */
 .assignment-table.peeloff-list .staff-time input{font-size:13px;color:var(--pl-muted);background:transparent;border-color:transparent;box-shadow:none}
 .assignment-table.peeloff-list .staff-time input:hover{border-color:var(--pl-line)}
 .assignment-table.peeloff-list .staff-time input:focus{background:#fff;color:var(--pl-ink);border-color:var(--pl-forest-soft)}
 .assignment-table.peeloff-list .staff-time input::placeholder{color:#b3bfba}

 /* MEO: the same tick box, shown as a pill (owner 2026-10-15: the box stays). Ticked: "Take MEO back". */
 .assignment-table.peeloff-list tr[data-target-kind]>td:last-child{display:flex;align-items:center;justify-content:flex-end;gap:4px}
 .meo-pill{position:relative;display:inline-flex}
 .meo-pill.is-ineligible{display:none}
 .assignment-table .meo-pill input[data-meo]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0!important;cursor:pointer}
 .meo-pill input[data-meo]:disabled{cursor:default}
 .meo-pill span{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border:1px solid #cdd8d2;border-radius:999px;background:#fff;color:var(--pl-muted);font-size:12px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
 .meo-pill:hover span{border-color:var(--pl-forest-soft);color:var(--pl-forest)}
 .meo-pill:has(input:focus-visible) span{outline:3px solid var(--pl-forest);outline-offset:2px}
 .meo-pill:has(input:checked) span{border-color:var(--pl-forest);color:var(--pl-forest);background:#eef5f1}
 .meo-pill:has(input:disabled) span{opacity:.55}

 /* Row states. */
 .assignment-table.peeloff-list tr.off,.assignment-table.peeloff-list tr.rest{background:var(--pl-ground)}
 .assignment-table.peeloff-list tr.off input.name,.assignment-table.peeloff-list tr.rest input.name{color:var(--pl-muted)}
 .assignment-table.peeloff-list tr.supervising{background:#f3f8f5}
 .assignment-table.peeloff-list tr[data-section=out]{background:var(--pl-ground)}
 .assignment-table.peeloff-list tr[data-section=out] input.name{color:var(--pl-faint)}
 /* The row being edited, as before the redesign. */
 .assignment-table.peeloff-list tr[data-target-kind]:focus-within{background:#edf5e7}

 /* Not working tomorrow: no room button (typing still works). Postcall and precall keep it: a room is how they start
    working (review round 12). MEO names are off, not removed. */
 .assignment-table.peeloff-list tr[data-section=out] button[data-pick-room]{display:none}
 .assignment-table.peeloff-list tr:is([data-section=meo],[data-section=out]) input.name{text-decoration:none}

 /* Rows other than a person. */
 .assignment-table.peeloff-list tr.list-ask-row{display:block}
 .assignment-table.peeloff-list tr.list-ask-row>td{display:block;border:0}
 .assignment-table.peeloff-list tr:is([data-id=empty],.placeholder-row){display:block}
 .assignment-table.peeloff-list tr.placeholder-row>td{display:block}
 #staff-planning .list-status{font-size:15px}
}
/* 1060–1199 px: the panel is about 610 px wide; tighter gaps keep every row on screen. */
@media(min-width:1060px) and (max-width:1199px){.assignment-table.peeloff-list tr[data-target-kind]{column-gap:8px;grid-template-columns:116px minmax(90px,.9fr) minmax(124px,1.7fr) minmax(72px,.75fr) 140px}.assignment-table.peeloff-list tr[data-target-kind]>td:first-child{padding-right:20px}}
@media(min-width:1060px) and (prefers-reduced-motion:no-preference){
 .assignment-table.peeloff-list tr[data-target-kind]{transition:background-color .15s}
}

/* Step 1b (owner 2026-10-17): on a computer the list's side panel is on the LEFT, beside the names, never on the right.
   It holds the open rooms (pick one, then the person), "Still needs you", and Edit rooms, which shows the full room
   planner in its place. The CRNAs follow the peeloff in the main column, reached by a link above the list (not every
   scheduler does CRNAs first). Phones and tablets keep their one-section-at-a-time layout; the board is unchanged. */
.list-side{display:none}
.crna-jump{display:inline-block;margin:4px 0 0;padding:0;font-size:13px;font-weight:650;color:var(--pl-good);background:none;border:0;cursor:pointer;text-align:left}
.crna-jump.is-open{color:var(--pl-amber)}
.crna-jump[hidden]{display:none!important}
.list-side-empty{margin:0;font-size:13px;color:var(--pl-muted)}
.crna-jump:hover{text-decoration:underline}
.crna-jump:focus-visible{outline:3px solid var(--pl-forest);outline-offset:2px}
@media(min-width:1060px){
 body:not([data-creator-layout=board]) .workspace{grid-template-areas:"side staff" "side crnas" "finish finish";grid-template-rows:auto 1fr auto}
 body.rooms-editing:not([data-creator-layout=board]) .workspace{grid-template-areas:"side staff" "rooms staff" "rooms crnas" "finish finish";grid-template-rows:auto auto 1fr auto}
 body:not([data-creator-layout=board]) .workspace>.list-side{grid-area:side;display:flex;flex-direction:column;gap:12px;align-self:start;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
 body.rooms-editing .workspace>.list-side{position:static;max-height:none}
 body:not([data-creator-layout=board]):not(.rooms-editing) .workspace>#room-planning{display:none}
 body.rooms-editing .list-side-card{display:none}
 body:not([data-creator-layout=board]) .workspace>.crna-section{grid-area:crnas}
 body:not([data-creator-layout=board]) #crna-room-tray{display:none!important}
 .list-side-edit{align-self:flex-start}
 .list-side-rooms h2 b{font-size:22px;color:var(--pl-forest);margin-right:2px}
 .list-side #md-room-tray{margin:0}
 .list-side #md-room-tray .room-tray-hint{margin:0 0 8px;font-size:12.5px;color:var(--pl-muted)}
 .list-side #md-room-tray .room-tray-list{display:flex;flex-direction:column;gap:6px}
 .list-side #md-room-tray .room-tray-room{display:flex;justify-content:space-between;align-items:baseline;gap:8px;width:100%;text-align:left}
 .list-side #md-room-tray .room-tray-room strong{min-width:0;overflow-wrap:anywhere}
 .list-side #md-room-tray .room-tray-room span{flex:none;font-size:12px;color:var(--pl-muted)}
 .list-side #md-room-tray .room-tray-room.is-picked{background:var(--pl-lime);border-color:var(--pl-forest)}
}
/* The side panel's card, buttons and "Still needs you" at every width: phones and tablets show it above the list (shell.css). */
.list-side-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.list-side-card{background:#fff;border:1px solid var(--pl-line);border-radius:12px;padding:12px 14px}
.list-side-card h2{margin:0 0 4px;font-size:15px;font-stretch:85%}
#still-needs{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:7px;font-size:13px;line-height:1.35}
#still-needs li{position:relative;padding-left:15px}
#still-needs li::before{content:"";position:absolute;left:0;top:.45em;width:7px;height:7px;border-radius:50%;background:var(--pl-amber)}
#still-needs li.still-done::before{background:var(--pl-good)}
@media(min-width:1060px) and (max-width:1199px){body:not([data-creator-layout=board]) .workspace{grid-template-columns:minmax(280px,.6fr) minmax(610px,1.65fr)}}
@media(min-width:1200px){body:not([data-creator-layout=board]) .workspace{grid-template-columns:minmax(300px,.6fr) minmax(640px,1.65fr)}}
body[data-creator-layout=board] .list-side{display:none!important}
/* While editing rooms the planner needs its usual width. */
@media(min-width:1060px){body.rooms-editing:not([data-creator-layout=board]) .workspace{grid-template-columns:minmax(350px,.85fr) minmax(610px,1.65fr)}}

/* An MEO row reads "MEO 1", "MEO 2"… in email/board order (owner 2026-10-20; 2026-10-18: no original spot), in the
   position cell; phones hide that cell on MEO rows, so their tag carries it. A fixed duty still held (like 4665) takes
   the label and the number follows it; an advance MEO says "Advance MEO" (they can't be called in). */
.meo-advance{font-weight:700;color:var(--pl-ink,inherit)}
@media(max-width:600px){.meo-tag+.meo-off::before{content:"· "}}

/* One list in published order (owner 2026-10-18): MEO, leave and going-home rows keep their usual greyed row styles
   (tr.off, tr.rest, data-section=out) in place. A drop-down gets an amber reminder under the name. */
.order-going{display:block;flex-basis:100%;text-align:right;font-size:12px;font-weight:700;color:var(--pl-muted)}
.drop-note{display:block;font-size:12.5px;font-weight:700;color:#8a5200;margin-top:2px}

/* Changed since the schedule email went out (whole-app step 6). */
.changed-tag{display:inline-block;font-size:11.5px;font-weight:800;background:#d7f68b;color:#174a43;border-radius:6px;padding:1px 6px;margin-top:2px}

/* Repeat-room reminder (owner 2026-11-02): PSCV or ASU Endo again after the previous working day. Quiet amber, a
   reminder only; a tap opens the line naming the days. */
.repeat-tag{display:block;margin-top:3px}
.repeat-tag summary{display:inline-flex;align-items:center;gap:5px;list-style:none;cursor:pointer;font-size:12px;font-weight:700;color:#7a4800;background:var(--pl-amber-bg);border:1px solid var(--pl-amber-line);border-radius:999px;padding:2px 9px;min-height:22px}
.repeat-tag summary::-webkit-details-marker{display:none}
.repeat-tag summary:focus-visible{outline:3px solid #7ba993;outline-offset:2px}
.repeat-tag small{display:block;font-size:12px;color:var(--pl-muted);margin-top:3px}
