/* The trainer's menus (#/menus, web/js/staff/menus/) and the food library (web/js/staff/food-library.js).
   Tokens only; type in rem; motion is transform/opacity with a reduced-motion variant.
   Reuses .bx-res / .bx-egg / .bx-macros (build.css) and .nu-dot / .nu-tot / .nu-opt-t (nutrition.css). */

/* ---------- the shelf ---------- */
.mn-top{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.mn-filters{display:flex;flex-direction:column;gap:10px}
.mn-n{margin-inline-start:6px;font-style:normal;font-weight:500;font-variant-numeric:tabular-nums;opacity:.88}
.mn-tabs .chip{padding:9px 16px;font-size:.92rem}
.row.mn-row{grid-template-columns:minmax(0,1fr) auto auto;min-height:56px}
.mn-row .pills{max-width:46%}
.mn-row .pill{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mn-shelf-h{padding:12px 2px 4px;font-size:.84rem}
.mn-pane .tile-h h2{min-width:0;overflow-wrap:anywhere}
.mn-pane-b{display:flex;flex-direction:column;gap:14px;min-width:0}
.mn-pane-empty{padding-block:8px}
.mn-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.mn-two .btn{padding-inline:8px;font-size:.94rem}

/* ---------- one menu ---------- */
.mn-pills{display:flex;flex-wrap:wrap;gap:6px}
.mn-kind{margin:0}
.mn-kind .hint{margin-top:6px}
/* the sheet of "לפי סוג יום" (staff/day-split.js): the three days, each with its numbers */
.ds-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ds-rows li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 12px;border-radius:12px;background:var(--tile-2)}
.ds-rows li span{white-space:nowrap}
.ds-prev{display:flex;flex-direction:column;gap:8px}
.mn-fam small{font-weight:500;opacity:.8}
.mn-sheet .banner{flex:none}
.mn-fam.high[aria-pressed="true"]{background:var(--high);color:var(--on-high)}
.mn-fam.low[aria-pressed="true"]{background:var(--low);color:var(--on-low)}
.mn-tot{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:14px;background:var(--tile-2)}
.mn-tot h3{letter-spacing:0}
.mn-tot .tile-h{align-items:baseline}
.mn-meal{display:flex;flex-direction:column;gap:8px;padding:14px 12px 10px;border-radius:14px;background:var(--tile-2)}
.mn-meal > .tile-h h3{font-size:1.02rem;color:var(--ink);letter-spacing:0;min-width:0;overflow-wrap:anywhere}
.mn-meal > .tile-h .sub{flex:none;font-weight:700;color:var(--ink)}
.mn-mealmac{margin-top:-6px}
.mn-slot{display:flex;flex-direction:column;gap:4px;padding:10px 12px 4px;border-radius:12px;background:var(--tile)}
.mn-slot-h{display:flex;align-items:center;gap:8px;min-width:0}
.mn-slot-h b{flex:none;font-size:.94rem}
.mn-slot-h .sub{min-width:0;margin-inline-start:auto;text-align:end}
.mn-opts{display:flex;flex-direction:column}
.mn-opt{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:52px;padding:7px 0;border-top:1px solid var(--line);text-align:start;transition:opacity 120ms ease}
.mn-opt:active{opacity:.6}
.mn-opt .nu-opt-t small{white-space:normal}
.mn-opt.is-swapped .nu-opt-t b{color:var(--ink-2)}
.mn-ovline{color:var(--secondary-text) !important;font-weight:600}
.mn-fixline{color:var(--ink-2) !important}
.mn-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mn-tools .textlink{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:.875rem}
.mn-tools .textlink svg,.mn-newfood svg{width:15px;height:15px}
.mn-foot{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.mn-links{display:flex;flex-wrap:wrap;gap:8px}
.mn-share{padding:10px 12px;border-radius:12px;background:var(--tile-2)}
.banner.info svg{color:var(--secondary-text)}

/* ---------- inside a food ---------- */
.mn-step{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px}
.mn-step button{height:50px;border-radius:12px;background:var(--tile-2);font-size:1.5rem;font-weight:500;color:var(--secondary-text);transition:transform 120ms var(--ease-out)}
.mn-step button:active{transform:scale(.95)}
.mn-step b{min-width:0;text-align:center;font-size:1.0625rem;overflow-wrap:anywhere}
[data-lock][aria-busy="true"]{opacity:.55;pointer-events:none}
.mn-fix,.mn-ov{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:12px;font-size:.875rem;line-height:1.45}
.mn-fix{background:var(--decor-tint);box-shadow:inset 0 0 0 1px var(--decor)}
.mn-ov{background:var(--wash)}
.mn-fix svg,.mn-ov svg{width:18px;height:18px;flex:none;margin-top:1px}
.mn-fix span,.mn-ov span{flex:1;min-width:0}
.mn-acts{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.row.mn-bal{grid-template-columns:minmax(0,1fr) auto}
.mn-balto{color:var(--secondary-text) !important;font-weight:600}

/* ---------- the food library ---------- */
.mn-search{display:flex;flex-direction:column;gap:10px;min-width:0}
.row.mn-food{grid-template-columns:minmax(0,1fr) auto auto;min-height:52px}
.mn-food.is-in .row-t b{color:var(--ink-3)}
.mn-food[disabled]{cursor:default}
.mn-kvs .kv{padding-block:9px}
.mn-kvs .kv b{font-size:.94rem;font-weight:600}
.mn-newfood{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:44px}
.row.mn-client{min-height:56px}

/* the menu sheet has room to be wider on a wide screen */
@media (min-width: 900px){
  .sheet.mn-sheet{max-width:680px}
}
@media (hover: hover) and (pointer: fine){
  .mn-opt:hover .nu-opt-t b{color:var(--secondary-text)}
  .mn-step button:hover{background:var(--wash)}
}
@media (prefers-reduced-motion: reduce){
  .mn-step button:active{transform:none}
  .mn-opt{transition:none}
}

/* "כמה לבחור" of a choice, while building */
.mn-tools{flex-wrap:wrap}
.mn-count{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.875rem;color:var(--ink-2,inherit)}
.mn-count span{margin-inline-end:auto}
.mn-count b{min-width:1.5em;text-align:center;font-size:1rem}
.mn-count .icon-btn[aria-disabled="true"]{opacity:.35;pointer-events:none}
