/* noted. contrast: slate and white, the Barolo way (Justin, Nov 3: "add some contrast to all the buttons and headers in
   noted like we have in barolo. Some slate buttons with white text, some the other way, some slate headers with white text").
   One shared layer, loaded last on every staff page. Guest pages never load it. Tokens first, then four patterns:

   1. Slate header band: a card's title sits on slate, flush to the card's top edge, in white. Buttons on the band are
      solid white with slate text, like Barolo's Clear and Close.
   2. Primary action: flat slate, white text.
   3. Secondary action on white: white, a firm slate border, slate text. No faint gray outlines.
   4. Close to the Desk: a solid slate circle with a white X.

   The winery's own header color (NOTED_BAROLO_HEADER_COLOR, --brl-head-bg) wins over the app's slate when it is set,
   the same rule Barolo uses. The dictation mic is left alone. `:not(#nu-none)` lifts a rule over the older layers. */

body.noted-staff{
  --slate:var(--brl-head-bg,var(--desk-ink,#242424));
  --on-slate:#fff;
  --slate-hover:#3a3a3a;
  --on-slate-btn:#f5f5f5;          /* a button sitting on slate */
  --on-slate-btn-hover:#fff;
  --firm-border:1.5px solid var(--slate);
  --band-pad-y:10px;
  --band-h:60px;                  /* every band the same height, with or without a button */
}

/* ---------- 2. Primary: flat slate, white text ---------- */
body.noted-staff.nu-concierge :is(.nu-primary,.sm-btn:not(.ghost),.bk-send,.qf-cta,.ns-btn-primary,.ch-primary,.home-new-visit,.tv-btn-primary):not(:disabled):not(#nu-none){
  background:var(--slate)!important;border-color:var(--slate)!important;color:var(--on-slate)!important}
@media(hover:hover) and (pointer:fine){
  body.noted-staff.nu-concierge :is(.nu-primary,.sm-btn:not(.ghost),.bk-send,.qf-cta,.ns-btn-primary,.ch-primary,.home-new-visit,.tv-btn-primary):not(:disabled):not(#nu-none):hover{
    background:var(--slate-hover)!important}
}

/* ---------- 3. Secondary on white: firm slate border, slate text (the Team page's buttons too, Nov 26) ---------- */
body.noted-staff.nu-concierge :is(.nu-secondary,.sm-btn.ghost,.ns-btn-ghost,.arr-notes-toggle,.arr-add-note,.po-remove,.pg-back,.tv-btn-secondary):not(:disabled):not(#nu-none){
  background:#fff!important;border:var(--firm-border)!important;color:var(--slate)!important;font-weight:600!important}
@media(hover:hover) and (pointer:fine){
  body.noted-staff.nu-concierge :is(.nu-secondary,.sm-btn.ghost,.ns-btn-ghost,.arr-notes-toggle,.arr-add-note,.po-remove,.tv-btn-secondary):not(:disabled):not(#nu-none):hover{
    background:#f5f5f5!important}
}
/* Day steppers beside a date (Book, Reports): the same firm edge. */
body.noted-staff.nu-concierge .nu-daybar-step:not(:disabled):not(#nu-none){border:var(--firm-border)!important;color:var(--slate)!important}

/* ---------- 4. Close to the Desk: solid slate, white X ---------- */
body.nu-concierge.noted-staff .nu-page-home:not(#nu-none){background:var(--slate)!important;color:var(--on-slate)!important}
@media(hover:hover) and (pointer:fine){body.nu-concierge.noted-staff .nu-page-home:not(#nu-none):hover{background:var(--slate-hover)!important}}
body.nu-concierge.noted-staff .nu-page-home:focus-visible{outline-color:var(--slate)!important}

/* ---------- 1. Slate header bands ---------- */
/* A card's own title (the first heading in a .po-card: Review the Order, Daily Sales Report, At a Glance, Upload an
   Order) and the Pages card heads (Contact, Orders, Marketing...). The band runs to the card's edges. */
body.noted-staff.nu-concierge .po-card:has(>:is(h2,.pg-card-head):first-child){overflow:hidden}
body.noted-staff.nu-concierge .po-card>h2:first-child:not(#nu-none),
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child:not(#nu-none){
  margin:calc(-1 * var(--card-pad,24px)) calc(-1 * var(--card-pad,24px)) var(--gap-in,12px)!important;
  padding:var(--band-pad-y) var(--card-pad,24px)!important;min-height:var(--band-h)!important;box-sizing:border-box;
  display:flex!important;align-items:center;
  background:var(--slate)!important;color:var(--on-slate)!important}
/* One title size on every band, whatever the heading was before. */
body.noted-staff.nu-concierge .po-card>h2:first-child:not(#nu-none),
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child :is(h2,h3):not(#nu-none){font-size:20px!important;line-height:26px!important}
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child :is(h2,h3):not(#nu-none){color:var(--on-slate)!important}
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child+*:not(#nu-none){margin-top:var(--gap-group,24px)!important}
body.noted-staff.nu-concierge .po-card>h2:first-child+*:not(#nu-none){margin-top:var(--gap-group,24px)!important}

/* Buttons on a slate band: solid white, slate text (Barolo's Clear and Close). */
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child :is(button,.nu-secondary):not(:disabled):not(#nu-none){
  background:var(--on-slate-btn)!important;border:0!important;color:var(--slate)!important;box-shadow:none!important;font-weight:600!important;min-height:44px!important;height:44px!important;margin-block:-2px!important}
@media(hover:hover) and (pointer:fine){
  body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child :is(button,.nu-secondary):not(:disabled):not(#nu-none):hover{background:var(--on-slate-btn-hover)!important}
}
body.noted-staff.nu-concierge .po-card>.pg-card-head:first-child :is(button,.nu-secondary):focus-visible{outline-color:var(--on-slate)!important;outline-offset:2px!important}

/* Desk: Arrivals, Calendar and Weather open from a white bar (Justin, Nov 3: the slate bands were "too much"). The title
   stays left in ink; the caret is white inside a solid slate circle on the right. Open, a thin line sits under the bar.
   The same bar is the Calendar on Reservations (#bkDay holds the Desk's card). */
body.noted-staff{--fold-dot:32px}
body.noted-staff.nu-home .today-card{overflow:hidden;--today-pad:var(--gap-group,24px)}
body.noted-staff.nu-home .today-card>.today-card-title:not(#nu-none){
  margin:calc(-1 * var(--today-pad)) calc(-1 * var(--today-pad)) var(--today-pad)!important;
  padding:var(--band-pad-y) var(--today-pad)!important;min-height:52px;box-sizing:border-box;display:flex;align-items:center;background:#fff!important;color:var(--desk-ink,#242424)!important;
  border-bottom:1px solid var(--desk-line,#e7e5e0)}
body.noted-staff.nu-home .today-card>.today-card-title :is(.dh-fold,.dh-fold-label,span):not(#nu-none){color:var(--desk-ink,#242424)!important}
body.noted-staff.nu-home .today-card>.today-card-title .dh-fold{flex:1;min-width:0}
body.noted-staff.nu-home .today-card>.today-card-title .dh-fold-chevron:not(#nu-none){box-sizing:border-box;width:var(--fold-dot);height:var(--fold-dot);padding:8px;border-radius:50%;
  background:var(--slate);stroke:var(--on-slate)!important;color:var(--on-slate)!important;stroke-width:2.4}
body.noted-staff.nu-home .today-card>.today-card-title .dh-fold:focus-visible{outline-color:var(--slate)!important;outline-offset:-3px!important}
body.noted-staff.nu-home .today-card.is-folded>.today-card-title:not(#nu-none){border-bottom:0}
/* A folded card is just its band. */
body.noted-staff.nu-home .today-card.is-folded>.today-card-title:not(#nu-none){margin-bottom:calc(-1 * var(--today-pad))!important}
@media(max-width:743px){body.noted-staff.nu-home .today-card{--today-pad:16px}}
@media(max-width:600px){body.noted-staff.nu-home .today-card{--today-pad:var(--gap-in,12px)}}

/* Sheets (Pages edits, confirm steps, Book): the head is a slate band like Barolo's, title in white, the close solid white. */
body.noted-staff.nu-concierge dialog.ns-sheet .ns-head:not(#nu-none){background:var(--slate)!important;color:var(--on-slate)!important;border-bottom:0!important}
body.noted-staff.nu-concierge dialog.ns-sheet .ns-head .ns-title:not(#nu-none){color:var(--on-slate)!important}
body.noted-staff.nu-concierge dialog.ns-sheet .ns-head :is(button,.ns-close):not(:disabled):not(#nu-none){
  background:var(--on-slate-btn)!important;border:0!important;color:var(--slate)!important;box-shadow:none!important}
@media(hover:hover) and (pointer:fine){
  body.noted-staff.nu-concierge dialog.ns-sheet .ns-head :is(button,.ns-close):not(:disabled):not(#nu-none):hover{background:var(--on-slate-btn-hover)!important}
}
body.noted-staff.nu-concierge dialog.ns-sheet .ns-head :is(button,.ns-close):focus-visible{outline-color:var(--on-slate)!important;outline-offset:2px!important}

/* New Reservation: Add Booking Details is the same white bar as the Calendar above it (Justin, Nov 3): its label on the
   left in ink, the white caret in the slate circle on the right, the Calendar card's radius and edge. */
body.noted-staff #bookingOverlay .bk-fill-open:not(#nu-none){display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  min-height:52px;padding:var(--band-pad-y) var(--gap-group,24px)!important;border:1px solid var(--desk-line,#e7e5e0)!important;border-radius:24px!important;
  background:#fff!important;color:var(--desk-ink,#242424)!important;box-shadow:var(--desk-card-shadow,none)!important;text-align:left;font-size:18px!important;font-weight:700!important}
body.noted-staff #bookingOverlay .bk-fill-open:not(#nu-none)::after{position:static;flex:none;width:var(--fold-dot);height:var(--fold-dot);margin:0;border:0;border-radius:50%;
  background:var(--slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transform:rotate(-90deg);transition:transform 200ms ease}
body.noted-staff #bookingOverlay .bk-fill-open[aria-expanded="true"]:not(#nu-none)::after{transform:none;margin:0}
body.noted-staff #bookingOverlay .bk-fill-open:focus-visible{outline:2px solid var(--slate)!important;outline-offset:2px}
@media(max-width:743px){body.noted-staff #bookingOverlay .bk-fill-open:not(#nu-none){padding-left:16px!important;padding-right:16px!important}}
@media(max-width:600px){body.noted-staff #bookingOverlay .bk-fill-open:not(#nu-none){padding-left:var(--gap-in,12px)!important;padding-right:var(--gap-in,12px)!important;border-radius:20px!important}}
@media(prefers-reduced-motion:reduce){body.noted-staff #bookingOverlay .bk-fill-open::after{transition:none}}

/* Pop-ups (the post-visit notes nudge, the Saved toast, the Floor's Undo bar): white cards like the tiles they float over,
   not black slabs (Justin, Nov 25: "the noted black pop up boxes are ugly and clash with the app ui"). The card's edge
   and a lifted shadow, ink text, the link in ink and underlined, Dismiss a soft gray pill with no box. */
body.noted-staff :is(.pv-nudge,.nu-toast,.fl-toast):not(#nu-none){
  background:#fff!important;color:var(--desk-ink,#242424)!important;border:1px solid var(--desk-line,#e0e0e0)!important;border-radius:20px!important;
  box-shadow:0 2px 6px #0000000a,0 12px 32px #0000001a!important;font:500 15px/1.45 var(--team-font,inherit)!important;letter-spacing:-.005em}
body.noted-staff .pv-nudge:not(#nu-none){flex-wrap:nowrap;gap:var(--gap-in,12px);padding:12px 12px 12px 20px;max-width:560px}
body.noted-staff .pv-nudge>span{min-width:0;flex:1 1 auto}
body.noted-staff .pv-nudge a:not(#nu-none){color:var(--desk-ink,#242424)!important;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;white-space:nowrap}
body.noted-staff .pv-nudge button:not(#nu-none){flex:none;min-height:44px;padding:0 18px;border:0!important;border-radius:999px!important;
  background:var(--desk-well,#f5f5f5)!important;color:var(--desk-ink,#242424)!important;box-shadow:none!important;font:600 14px/1 var(--team-font,inherit)!important;cursor:pointer}
@media(hover:hover) and (pointer:fine){body.noted-staff .pv-nudge button:not(#nu-none):hover{background:#ececec!important}}
body.noted-staff .pv-nudge button:focus-visible{outline:2px solid var(--desk-ink,#242424)!important;outline-offset:2px!important}
body.noted-staff .nu-toast:not(#nu-none){padding:14px 22px}
@media(max-width:600px){body.noted-staff .pv-nudge:not(#nu-none){flex-wrap:wrap;padding:16px 16px 12px 20px}
  body.noted-staff .pv-nudge>span{flex-basis:100%}body.noted-staff .pv-nudge button:not(#nu-none){margin-left:auto}}
