/* noted. drop-down (public/shared/noted-select.js). Staff pages only. The field is drawn like every other staff field
   (the One UI tokens in noted-team-polish.css: 48px, radius 14, 1px #d6d6d6, 16px Open Sauce, charcoal focus ring), and
   the open list is a white rounded card like the date picker's and the pop-ups', with the charcoal check for the
   chosen row. No browser menu, no browser blue. */

/* The select stays in the form, out of sight. */
select.nu-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}

/* ---------- The field ---------- */
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2){
  -webkit-appearance:none;appearance:none;position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:var(--field-h,48px);height:auto;margin:0;
  padding:var(--field-pad-select,12px 44px 12px 16px);padding-right:44px!important;
  border:1px solid var(--field-border,#d6d6d6)!important;border-radius:var(--field-radius,14px)!important;
  background:var(--field-bg,#fff)!important;background-image:none!important;box-shadow:var(--field-shadow,inset 0 1px 2px #0000000a)!important;
  color:var(--desk-ink,#242424)!important;font:400 16px/22px var(--team-font,'Open Sauce',-apple-system,BlinkMacSystemFont,sans-serif)!important;
  letter-spacing:0!important;text-transform:none!important;text-align:left!important;white-space:nowrap;
  transform:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:border-color .15s}
body.noted-staff button.nu-select[hidden]{display:none!important}
body.noted-staff button.nu-select .nu-select-value{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.noted-staff button.nu-select.nu-select-placeholder .nu-select-value{color:#767676}
body.noted-staff button.nu-select .nu-select-chev{position:absolute;right:14px;top:50%;width:20px;height:20px;margin-top:-10px;fill:none;stroke:currentColor;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s cubic-bezier(.2,.7,.2,1);pointer-events:none}
body.noted-staff button.nu-select.nu-select-open .nu-select-chev{transform:rotate(180deg)}
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2):is(:hover,:active){transform:none!important;box-shadow:var(--field-shadow,inset 0 1px 2px #0000000a)!important;background:var(--field-bg,#fff)!important}
@media (hover:hover) and (pointer:fine){body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2):not(:disabled):hover{border-color:#a8a8a8!important}}
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2).nu-select-open,
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2):focus{border-color:var(--field-focus,#242424)!important}
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2):focus-visible{outline:3px solid var(--field-focus,#242424)!important;outline-offset:2px!important}
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2)[aria-invalid="true"]{border-color:var(--field-invalid,#8b3029)!important;box-shadow:0 0 0 1px var(--field-invalid,#8b3029)!important}
body.noted-staff button.nu-select:not(#nu-none):not(#nu-none2):disabled{cursor:not-allowed;opacity:.55}

/* ---------- The list ---------- */
.nu-select-pop{position:fixed;inset:auto;left:var(--nu-sel-x,0);top:var(--nu-sel-y,0);z-index:10001;box-sizing:border-box;width:var(--nu-sel-w,280px);
  max-height:var(--nu-sel-max,380px);margin:0;padding:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border:0;border-radius:16px;background:#fff;color:#242424;outline:none;
  box-shadow:0 0 0 .5px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.06),0 14px 36px rgba(0,0,0,.16);
  font:400 16px/22px var(--team-font,'Open Sauce',-apple-system,BlinkMacSystemFont,sans-serif);text-align:left;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transform-origin:top center;animation:nu-select-in .16s cubic-bezier(.2,.7,.2,1)}
.nu-select-pop.nu-select-up{transform-origin:bottom center}
.nu-select-pop[hidden]{display:none!important}
.nu-select-pop::backdrop{background:transparent}
.nu-select-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px 10px 10px;box-sizing:border-box;border-radius:10px;cursor:pointer;color:#242424}
.nu-select-option .nu-select-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.nu-select-check{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.nu-select-option[aria-selected="true"]{font-weight:600}
.nu-select-option[aria-selected="true"] .nu-select-check{visibility:visible}
.nu-select-option.nu-select-active{background:#f2f2f2}
.nu-select-option:active{background:#e9e9e9}
.nu-select-option[aria-disabled="true"]{color:#a1a1a1;cursor:default;background:transparent}
.nu-select-group{padding:12px 12px 4px 38px;font-size:13px;line-height:18px;font-weight:600;color:#676767}
.nu-select-sep{height:1px;margin:6px 10px;background:#e5e5e5}
@keyframes nu-select-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.nu-select-pop{animation:none}body.noted-staff button.nu-select .nu-select-chev{transition:none}}
@media (forced-colors:active){.nu-select-option.nu-select-active{outline:2px solid Highlight}.nu-select-pop{border:1px solid CanvasText}}

/* Process (Justin, Nov 25): the channel drop-down reads like the Tasting Room tile above it, its prompt in ink, not gray. */
body.noted-staff .po-type button.nu-select.po-type-select.nu-select-placeholder .nu-select-value{color:var(--po-ink,#242424)}
