/* Past menus: a Photos-style grid of real sheet thumbnails. Colors follow the designer mockup. */
.hx,#hxday,#hxreuse,#hxtoast{--hx-paper:#fff;--hx-line:#e2ddd3;--hx-ink:#1a1a1a;--hx-muted:#5c5850;--hx-ok:#1f6b45;--hx-okbg:#e3f1e8;--hx-wait:#8a4b00;--hx-waitbg:#fbeedb;--hx-draft:#3d4a63;--hx-draftbg:#e7ebf2;--hx-none:#8a857b;--hx-nonebg:#efece6}
.hx-head{display:flex;align-items:center;gap:12px;margin:20px 0 8px}
.hx-head h2{font-size:20px;margin:0;flex:1}
.hx-zoom{display:flex;gap:6px}
.hx-zoom button{width:48px;height:48px;border-radius:14px;border:2px solid var(--hx-ink);background:#fff;color:var(--hx-ink);font-size:26px;font-weight:700;line-height:1;cursor:pointer}
.hx-zoom button:disabled{opacity:.3;cursor:default}
.hx-key{display:none;flex-wrap:wrap;gap:6px 14px;font-size:14px;font-weight:600;color:var(--hx-muted);margin:0 0 10px}
.hx-key span{display:flex;align-items:center;gap:6px}.hx-key i{width:10px;height:10px;border-radius:50%}
.hx.dense .hx-key{display:flex}
#hxgrid{display:grid;padding:8px 6px;grid-template-columns:repeat(var(--days),minmax(0,1fr));gap:var(--gap) calc(var(--gap) + 4px);touch-action:pan-y;transform-origin:50% 0}
.hx-day{min-width:0;border-radius:12px}
.hx-day.today{outline:3px solid #d62828;outline-offset:calc(var(--gap) / 2 + 1px)}
#hxgrid[data-l="s"] .hx-day.today{outline-width:2px;border-radius:8px}
.hx-dl{display:flex;align-items:baseline;gap:6px;margin:0 0 6px;font-size:15px;font-weight:700;color:var(--hx-muted);white-space:nowrap;overflow:hidden}
.hx-dl b{color:var(--hx-ink);font-size:17px}
.hx-dl .now{background:var(--hx-ink);color:#fff;font-size:12px;letter-spacing:.06em;padding:2px 7px;border-radius:99px}
.hx-rp{display:grid;grid-template-columns:repeat(var(--svcs,2),1fr);gap:calc(var(--gap) / 1.5)}
.hx-thumb{position:relative;container-type:inline-size;aspect-ratio:8.5/11;background:#fff;border-radius:6px;overflow:hidden;cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.08);padding:0;border:0;display:block;width:100%;font:inherit}
.hx-thumb .hx-sheet{zoom:var(--z);pointer-events:none;text-align:left}
.hx-ld{position:absolute;inset:0;display:grid;place-items:center;font:700 62cqw/1 Georgia,serif;color:#e0561b;opacity:.3;pointer-events:none}
.hx-thumb.empty{background:transparent;box-shadow:none;border:2px dashed #cfc9bd}
.hx-thumb.empty .hx-ld{color:#b9b2a4;opacity:.4}
.hx-thumb.empty .hx-add{position:absolute;left:0;right:0;bottom:8%;text-align:center;font-weight:700;font-size:15px;color:var(--hx-muted)}
.hx-tag{position:absolute;left:5px;right:5px;bottom:5px;display:flex}
.hx-pill{display:inline-block;font-size:13px;font-weight:700;padding:3px 9px;border-radius:99px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.s-approved{background:var(--hx-okbg);color:var(--hx-ok)}.s-waiting{background:var(--hx-waitbg);color:var(--hx-wait)}.s-draft{background:var(--hx-draftbg);color:var(--hx-draft)}.s-none{background:var(--hx-nonebg);color:var(--hx-none)}
.hx-dot{position:absolute;right:4px;bottom:4px;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff}
.d-approved{background:var(--hx-ok)}.d-waiting{background:#d08a1a}.d-draft{background:var(--hx-draft)}.d-none{background:#cfc9bd}
#hxgrid[data-l="s"] .hx-tag{display:none}
#hxgrid[data-l="m"] .hx-dot,#hxgrid[data-l="l"] .hx-dot{display:none}
#hxgrid[data-l="m"] .hx-pill{font-size:11px;padding:2px 6px}
#hxgrid[data-l="s"] .hx-dl{font-size:12px;gap:3px}#hxgrid[data-l="s"] .hx-dl b{font-size:14px}#hxgrid[data-l="s"] .hx-dl .now{display:none}
#hxgrid[data-l="s"] .hx-dl.today b{background:var(--hx-ink);color:#fff;border-radius:6px;padding:0 4px}
#hxgrid[data-l="s"] .hx-thumb.empty .hx-add{display:none}
#hxgrid[data-l="s"] .hx-thumb{border-radius:3px}#hxgrid[data-l="s"] .hx-ld{place-items:start center;padding-top:12%;opacity:.42}
#hxgrid[data-l="s"] .lbl,#hxgrid[data-l="s"] .lbl2,#hxgrid[data-l="m"] .lbl2{display:none}
/* the printed sheet, in the lined-up format: black ink, names left, prices in one column */
.hx-sheet{background:#fff;font-family:Comfortaa,sans-serif;color:#1a1a1a;padding:28px 30px;width:600px}
.hx-sheet .lg{height:64px;margin:0 0 6px -6px;display:block}
.hx-sheet .lgt{font-family:Georgia,serif;font-size:26px;letter-spacing:.04em;text-transform:uppercase}
.hx-sheet h4{font-weight:400;font-size:19px;margin:8px 0}.hx-sheet hr{border:0;border-top:1px solid #888;margin:8px 0}
.hx-sheet .c{font-size:15px;margin:2px 0;letter-spacing:.04em}
.hx-sheet .dish{height:46px;overflow:hidden}
.hx-sheet .n{display:grid;grid-template-columns:1fr auto;column-gap:10px;font-weight:700;font-size:14px;margin-top:5px;white-space:nowrap}
.hx-sheet .n .t{overflow:hidden}.hx-sheet .n .p{text-align:right;min-width:36px}
.hx-sheet .i{font-size:12.5px;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hx-load{display:block;width:100%;margin:14px 0 0;padding:14px;border:2px solid var(--hx-ink);border-radius:14px;background:#fff;font-weight:700;font-size:20px;font-family:inherit;color:var(--hx-ink);cursor:pointer;min-height:56px}
/* day view */
#hxday{position:fixed;inset:0;background:#f6f4ef;overflow:auto;display:none;z-index:50}
#hxday.open{display:block}
.hx-dv{max-width:1100px;margin:0 auto;padding:12px 16px 0}
.hx-dvtop{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hx-back{font-weight:700;font-size:20px;background:none;border:0;color:var(--hx-ink);cursor:pointer;padding:10px 4px;min-height:48px}
.hx-dvtop h2{margin:0;font-size:20px;flex:1;text-align:right}
.hx-seg{display:flex;background:#e9e5dc;border-radius:14px;padding:4px;margin-bottom:12px}
.hx-seg button{flex:1;font-weight:700;font-size:20px;min-height:48px;border:0;border-radius:11px;background:transparent;color:var(--hx-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
.hx-seg button.on{background:#fff;color:var(--hx-ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.hx-seg .d{width:10px;height:10px;border-radius:50%}
.hx-svc{margin-bottom:12px}
.hx-svc .st{margin:0 0 8px;display:flex;align-items:center;gap:8px;font-weight:700;font-size:20px}
.hx-full{border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.06)}
.hx-full .hx-sheet{width:100%;padding:22px 20px}
.hx-emptyfull{border:2px dashed #cfc9bd;border-radius:8px;padding:56px 16px;text-align:center;color:var(--hx-none);font-weight:700;font-size:20px}
@media(min-width:900px){.hx-seg{display:none}.hx-dvsheets{display:grid;grid-template-columns:1fr 1fr;gap:24px}.hx-dvsheets>.hx-svc{display:block!important}}
.hx-acts{position:sticky;bottom:0;background:linear-gradient(rgba(246,244,239,0),#f6f4ef 18px);padding:22px 0 calc(14px + env(safe-area-inset-bottom));display:grid;gap:10px}
.hx-btn{display:block;width:100%;min-height:60px;border:0;border-radius:14px;font-weight:700;font-size:20px;line-height:1.2;background:var(--hx-ink);color:#fff;cursor:pointer;padding:0 14px;font-family:inherit}
.hx-btn.alt{background:#fff;color:var(--hx-ink);border:2px solid var(--hx-ink)}
@media(min-width:900px){.hx-acts{grid-template-columns:1fr 1fr}}
#hxreuse{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:flex-end;justify-content:center;z-index:60}
#hxreuse.open{display:flex}
.hx-up{background:#fff;width:100%;max-width:520px;border-radius:22px 22px 0 0;padding:22px 18px calc(24px + env(safe-area-inset-bottom))}
.hx-up h3{margin:0 0 4px;font-size:22px}.hx-up p{color:var(--hx-muted);margin:0 0 16px}
.hx-up .g{display:grid;gap:10px}
@media(min-width:900px){#hxreuse{align-items:center}.hx-up{border-radius:22px}}
#hxtoast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--hx-ink);color:#fff;padding:14px 20px;border-radius:14px;font-weight:700;font-size:18px;display:none;z-index:70;max-width:90vw;text-align:center}

/* three layouts */
.hx-sheet .n{display:block;font-weight:700;font-size:14px;margin-top:5px;white-space:nowrap}
.hx-sheet.col .dish{height:46px;overflow:hidden}
.hx-sheet.col .n{display:grid;grid-template-columns:1fr auto;column-gap:10px}
.hx-sheet.col .n .t{overflow:hidden}.hx-sheet.col .n .p{text-align:right;min-width:36px}
.hx-sheet .lu{display:grid;grid-template-columns:max-content 1fr;column-gap:0}
.hx-sheet .lu .dish{display:contents}
.hx-sheet .lu .t{font-weight:700;font-size:14px;white-space:nowrap;margin-top:5px;padding-right:.45em}
.hx-sheet .lu .p{font-weight:700;font-size:14px;white-space:nowrap;margin-top:5px}
.hx-sheet .lu .i{grid-column:1/-1}
.hx-lay{margin-left:auto}
.hx-lseg{display:flex;background:#e9e5dc;border-radius:12px;padding:3px}
.hx-lseg button{border:0;border-radius:9px;background:transparent;color:var(--hx-muted);font-weight:700;font-size:15px;font-family:inherit;min-height:44px;padding:0 12px;cursor:pointer;white-space:nowrap}
.hx-lseg button.on{background:#fff;color:var(--hx-ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
#hxdlay{margin:0 0 10px}
@media(max-width:560px){.hx-head{flex-wrap:wrap}.hx-lay{order:3;margin-left:0;width:100%}.hx-lseg{width:100%}.hx-lseg button{flex:1;padding:0 4px;font-size:14px}}
.hx-who{font-weight:700;font-size:15px;color:var(--hx-muted);white-space:nowrap}
.hx-out{min-height:44px;padding:0 14px;border:2px solid var(--hx-ink);border-radius:14px;background:#fff;color:var(--hx-ink);font-weight:700;font-size:16px;font-family:inherit;cursor:pointer}
.hx-rowacts{display:none;gap:10px;margin-top:10px}
@media(min-width:900px){.hx-rowacts{display:grid}.hx-acts{display:none}}

.hx-ruD{width:100%;min-height:52px;font-size:18px;border:2px solid var(--hx-ink);border-radius:12px;padding:0 12px;margin:0 0 12px;font-family:inherit}

.hx-print{margin-left:auto;min-height:52px;min-width:120px;padding:0 22px;border:0;border-radius:14px;background:var(--hx-ink);color:#fff;font-weight:700;font-size:20px;font-family:inherit;cursor:pointer}
.hx-print:disabled{background:#d9d5cb;color:#7a756b;cursor:not-allowed}
.hx-pnote{font-size:14px;font-weight:700;color:var(--hx-muted)}
.hx-svc .st{flex-wrap:wrap}
.hx-rpair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hx-rpair .hx-btn:disabled{opacity:.45;cursor:default}
.hx-lnk{background:none;border:0;color:var(--hx-ink);font:600 17px inherit;font-family:inherit;text-decoration:underline;min-height:44px;cursor:pointer;justify-self:start;padding:0 4px}
@media(min-width:900px){.hx-rowacts{grid-template-columns:1fr}.hx-acts{display:none}}
