/* Staff at the tills (pos-staff.js) on the Clawdie POS page, its dialogs, and the invited person's PIN page
   (pos-invite.html). Board job 80. Light, in the Office's own type, spacing and buttons. */

/* ---- The panel on /pos ---- */
#pos .pos-staff{margin-top:20px}
#pos .pos-staff-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:56px;padding-top:6px;padding-bottom:6px}
#pos #pos-staff-title{font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ink)}
#pos .pos-staff-count{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
#pos .pos-staff-add{margin-left:auto;min-height:36px;padding:0 16px;font-size:12px}
#pos .pos-staff-note{margin:0;padding:12px 16px;border-bottom:1px solid #f2c98a;background:var(--citrus);color:#7a4a08;font-size:14px;line-height:1.5}
#pos .pos-staff-empty{margin:0;padding:24px 16px;font-size:14px;line-height:1.5;color:var(--ink)}
#pos .pos-staff-rows{margin:0;padding:0;list-style:none}
#pos .pos-staff-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 16px;min-height:64px;padding:10px 16px}
#pos .pos-staff-row+.pos-staff-row{border-top:1px solid var(--line)}
#pos .pos-staff-who{display:grid;gap:3px;min-width:0}
#pos .pos-staff-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:14px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
#pos .pos-staff-till{font-size:12px;font-weight:600;color:var(--muted)}
#pos .pos-staff-detail{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
#pos .pos-staff-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#pos .pos-staff-manage{min-height:32px;padding:0 14px;font-size:11px}
:is(#pos,#dialog) .staff-tag{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
:is(#pos,#dialog) .staff-tag::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
:is(#pos,#dialog) .staff-tag.role-sell{background:#eceeef;color:#35434b}
:is(#pos,#dialog) .staff-tag.role-manage{background:#ede8fb;color:#4c2a8c}
:is(#pos,#dialog) .staff-tag.state-set{background:var(--mint);color:#1d5a2e}
:is(#pos,#dialog) .staff-tag.state-waiting{background:var(--citrus);color:#7a4a08}
:is(#pos,#dialog) .staff-tag.state-locked{background:var(--blush);color:#8c2f2b}
:is(#pos,#dialog) .staff-tag:is(.role-sell,.role-manage)::before{display:none}

/* ---- The invite and Manage dialogs ---- */
#dialog .staff-choice{margin-top:18px}
#dialog .staff-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--edge);border-radius:var(--radius);cursor:pointer}
#dialog .staff-option+.staff-option{margin-top:8px}
#dialog .staff-option:has(input:checked){border-color:var(--jungle);background:var(--mint)}
#dialog .staff-option input,#dialog .staff-store input{width:18px;height:18px;min-height:0;margin:2px 0 0;flex:none;accent-color:var(--green)}
#dialog .staff-option span{display:grid;gap:2px}
#dialog .staff-option strong{font-size:14px}
#dialog .staff-option small{font-size:13px;color:var(--muted)}
#dialog .staff-stores{display:flex;flex-wrap:wrap;gap:8px}
#dialog .staff-stores legend{width:100%}
#dialog .staff-store{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid var(--edge);border-radius:999px;font-size:14px;cursor:pointer}
#dialog .staff-store input{margin:0}
#dialog .staff-store:has(input:checked){border-color:var(--jungle);background:var(--mint)}
#dialog .staff-store-test{border-style:dashed;border-color:#e0a24a;background:var(--citrus)}
#dialog .staff-test-tag{padding:1px 8px;border-radius:999px;background:#7a4a08;color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#dialog .staff-choice+.dialog-copy{margin-top:18px}
/* The Till PIN field (DeAndre, 19 Nov): drawn as dots until Show, never a password field. */
#dialog .staff-pin-field{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}
#dialog .staff-pin-field>label{grid-column:1/-1}
#dialog .staff-pin-input:not(:placeholder-shown){font-family:Inter,sans-serif;font-size:20px;font-weight:700;letter-spacing:.3em}
#dialog .staff-pin-input.masked{-webkit-text-security:disc}
#dialog .staff-pin-toggle{min-height:44px;min-width:84px;padding:0 16px}
#dialog .form-field+.staff-pin-hint{margin:6px 0 20px}
#dialog .staff-status{margin:14px 0 0;padding:10px 12px;border-radius:var(--radius);background:var(--mint);color:#1d5a2e;font-weight:600}
#dialog .staff-rule{margin-top:18px}
#dialog .staff-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}

@media(max-width:720px){
  #pos .pos-staff-row{grid-template-columns:minmax(0,1fr) auto}
  #pos .pos-staff-tags{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  #pos .pos-staff-manage{grid-column:2;grid-row:1;min-height:44px}
  #pos .pos-staff-add{min-height:44px}
  #dialog .staff-store{min-height:44px}
}

/* ---- The page old PIN links land on (/pos-invite; no links since 19 Nov) ---- */
@media(max-width:720px){.pin-setup{margin-top:16px;padding:28px 20px}}
