/* The Gypsy Group: oxblood, cream and antique gold, taken from the wagon logo. */
:root {
  --bg: #f7efdd;
  --card: #fffaf0;
  --ink: #2a1215;
  --muted: #6b554b;
  --line: #e2d2b2;
  --accent: #6d1423;
  --accent-ink: #fdf3dc;
  --gold: #b8892f;
  --mast: #3a0a12;
  --mast-ink: #f6ecd6;
  --stripe-a: #6d1423;
  --stripe-b: #f3e6c8;
  --warn-bg: #f3dfa6;
  --warn-ink: #4a3300;
  --bad: #a3271c;
  --radius: 10px;
  --display: Rockwell, "Rockwell Nova", "Roboto Slab", "Sitka Heading", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b0c0f;
    --card: #2a1418;
    --ink: #f6ecd6;
    --muted: #c4ab9a;
    --line: #4d2b31;
    --accent: #dcb65f;
    --accent-ink: #2a1215;
    --gold: #dcb65f;
    --mast: #12060a;
    --stripe-a: #5a1120;
    --stripe-b: #d9c9a3;
    --warn-bg: #4a3a05;
    --warn-ink: #ffe9a6;
    --bad: #ff9a8d;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.has-cart { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
main { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
body.wide main { max-width: 760px; }
h1 { font-family: var(--display); font-size: 1.75rem; line-height: 1.15; margin: 14px 0 8px; color: var(--accent); }
h2 { font-size: .9rem; margin: 22px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: 1rem; margin: 14px 0 2px; }
a { color: var(--accent); }
.eyebrow { margin: 18px 0 -12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* masthead and awning */
.mast { background: var(--mast); color: var(--mast-ink); }
.mast-in { max-width: 760px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mast-ink); text-decoration: none; min-width: 0; }
.brand img { width: 108px; height: 72px; object-fit: contain; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--display); font-size: 1.1rem; letter-spacing: .03em; }
.brand i { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: #dcb65f; }
.mast nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: .95rem; }
.mast nav a { color: #e6d3b5; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mast nav a.on { color: #fff; border-bottom-color: #dcb65f; }
.awning { height: 12px; border-top: 2px solid #dcb65f;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 20px, var(--stripe-b) 20px 40px); position: relative; }
.awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 20px, var(--stripe-b) 20px 40px);
  -webkit-mask: radial-gradient(10px at 50% 0, #000 97%, transparent) 0 0 / 20px 100%;
          mask: radial-gradient(10px at 50% 0, #000 97%, transparent) 0 0 / 20px 100%; }
.banner { background: var(--warn-bg); color: var(--warn-ink); padding: 16px 16px 8px; font-size: .9rem; text-align: center; }
.awning + main { padding-top: 18px; }

/* day chips and day bar */
.days, .modes { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 2px; }
.modes { margin: 4px 0 0; }
.day { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); text-decoration: none; font-size: .95rem; cursor: pointer; }
.day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.day.blank:not(.on) { color: var(--muted); border-style: dashed; }
.daybar { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; margin: 10px -16px 0; padding: 8px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.daybar a { flex: 1 0 auto; min-width: 48px; min-height: 44px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.daybar .pip { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.daybar a.has { border-color: var(--accent); }
.daybar a.has .pip { background: var(--accent); border-color: var(--accent); }

/* week chooser on the crew page */
.weekbar { margin: 14px 0 2px; }
.weekq { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.weeks { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
.weeks a { flex: 1 0 auto; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink);
  text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.weeks a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.weeks .got { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.weeks a.on .got { color: inherit; }

.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
.note.closed { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.lead { margin: 4px 0 8px; }
.fine { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.empty { color: var(--muted); padding: 24px 0; }
.error { color: var(--bad); font-weight: 600; margin: 10px 0; }

/* menu */
.items, .summary, .orders, .lines, .picker, .totals ul { list-style: none; margin: 0; padding: 0; }
.daysec { margin-top: 8px; scroll-margin-top: 70px; }
.dayhead { font-family: var(--display); color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 1.35rem;
  margin: 28px 0 8px; padding-top: 14px; border-top: 3px double var(--gold); }
.dayhead span { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; font-size: 1rem; margin-left: 6px; }
h3.cat { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 12px 0 6px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.item.picked { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.item.out { opacity: .55; }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.desc { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 1px; }
.tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.warn { border-color: var(--bad); color: var(--bad); }
.price { margin-top: 2px; font-variant-numeric: tabular-nums; }
.soldout { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0; }
.qty .plus { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.count { min-width: 1.4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* cards */
.checkout, .receipt, .panel, .totals, .order { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-top: 20px; }
.checkout, .receipt { border-top: 4px solid var(--accent); }
.checkout h2, .panel h2:first-child, .totals h2 { margin-top: 0; }
.summary li, .subtotal { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.summary li span:first-child { overflow-wrap: anywhere; min-width: 0; }
.summary li + li { border-top: 1px solid var(--line); }
.subtotal { border-top: 2px solid var(--ink); font-weight: 700; margin: 6px 0 0; }
.subtotal.small { border-top: 1px solid var(--line); font-weight: 400; }

/* forms */
label, legend { display: block; font-weight: 600; margin: 14px 0 6px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input:not([type=checkbox]), textarea, select { width: 100%; padding: 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
select + input { margin-top: 8px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); padding: 10px 14px; }
button.primary { width: 100%; padding: 15px; border: 0; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1.05rem; margin-top: 16px; }
button:disabled { opacity: .6; }
button.danger { color: var(--bad); }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 8px; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); }
.cartbar .primary { max-width: 528px; margin: 0 auto; display: block; }

/* receipt */
.status { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0; }
.status.ok { background: var(--accent); color: var(--accent-ink); }
.status.wait { background: var(--warn-bg); color: var(--warn-ink); }
.status.bad { color: var(--bad); border: 1px solid var(--bad); }
.who { color: var(--muted); margin: 0 0 12px; }
.link { display: inline-block; margin-top: 14px; }
.sold { margin-top: 10px; }

/* kitchen */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daynav a { text-decoration: none; font-size: 1.4rem; padding: 8px 12px; }
.daynav h1, .daynav b { text-align: center; }
.totals li, .lines li { padding: 3px 0; }
.totals b, .lines b { display: inline-block; min-width: 1.8em; font-variant-numeric: tabular-nums; }
.totals h2 a { color: inherit; }
.order { margin-top: 10px; }
.order.done { opacity: .55; }
.order .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.order .who { color: var(--ink); font-weight: 600; margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.order .time { color: var(--muted); font-size: .9rem; }
.order .donebtn { margin-top: 10px; }
.roster { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.rosterlist { margin: 0 0 12px; padding-left: 1.6em; columns: 2; }
.rosterlist li { padding: 2px 0; break-inside: avoid; overflow-wrap: anywhere; }
.dish { padding: 8px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.dish:first-of-type { border-top: 0; padding-top: 0; }
.dish p { margin: 0; }
.dishname { font-weight: 600; }
.dishname b { display: inline-block; min-width: 1.8em; font-variant-numeric: tabular-nums; }
.dishwho { padding-left: 1.8em; overflow-wrap: anywhere; }

/* menu editor */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row label { margin: 0; }
.row select { width: auto; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 12px 0; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.check.small { font-size: .9rem; color: var(--muted); margin: 0; white-space: nowrap; }
.check.grow { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.picker li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rotmode .soldwrap { display: none; }
.tagpick { display: flex; flex-wrap: wrap; gap: 0 18px; }
.tagpick legend { width: 100%; }
.tagpick .check { margin: 6px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions .primary { width: auto; flex: 1; min-width: 180px; }
.actions button:not(.primary) { margin-top: 16px; }

/* orders report */
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--accent); min-width: 0; }
.stats span { color: var(--muted); font-size: .9rem; }
.tools { margin: 14px 0; }
.tools button { margin-top: 0 !important; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.report { width: 100%; border-collapse: collapse; font-size: .95rem; }
.report th, .report td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.report th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.report .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report tfoot td { font-weight: 700; border-bottom: 0; }
.dayline { padding: 1px 0; }
.dayline b { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .banner, .awning, .mast nav, .daynav a, .donebtn, .totals button, .tools, main > p:last-child { display: none !important; }
  .mast { background: none; color: #000; } .brand, .brand i { color: #000; }
  body { background: #fff; color: #000; }
  .totals, .order, .tablewrap { border-color: #999; break-inside: avoid; }
}

/* reports */
a.day { display: inline-block; }
.prep td:first-child, .prep th:first-child { min-width: 9em; overflow-wrap: anywhere; }
.prep th a { color: inherit; text-decoration: none; }
.prep .zero { color: var(--muted); }
.totals b.wide { min-width: 0; margin-right: 4px; }
.pickperson { margin: 14px 0 0; }
.pickperson select { min-width: 12em; }
@media print { .pickperson, .modes { display: none !important; } }

/* cities */
h1 .sub { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 1rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.where { text-align: center; margin: -4px 0 6px; font-weight: 600; }
.stophead, .stoprow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.stophead { font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 520px) { .stophead { display: none; } .stoprow { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .stoprow input:first-child { grid-column: 1 / -1; } }
.banner a { color: inherit; font-weight: 600; white-space: nowrap; }

/* Kitchen office: a plainer working look, so it is never mistaken for the crew ordering page. */
body.kitchen { --bg: #f1f0ec; --card: #ffffff; --line: #d9d6cf; --muted: #5d5a55; --ink: #1d1b1a; --mast: #23201f; }
body.kitchen .mast { border-bottom: 4px solid #dcb65f; }
body.kitchen .brand img { width: 60px; height: 40px; }
body.kitchen .brand i { color: #dcb65f; }
body.kitchen h1 { color: var(--ink); }
body.kitchen .banner { padding-top: 8px; }
body.kitchen main { padding-top: 14px; }
@media (prefers-color-scheme: dark) {
  body.kitchen { --bg: #171615; --card: #232120; --line: #3b3836; --muted: #b3ada6; --ink: #f1ede6; --mast: #0e0d0d; }
}

/* pay at the register */
.note.due { border-color: var(--gold); border-width: 2px; }
.paytag { font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.paytag.paid { background: #1f6f4a; color: #fff; }
.paytag.owes { border: 1.5px solid var(--bad); color: var(--bad); }
.owing, .stats b.owing { color: var(--bad); }
.order .actions button { margin-top: 10px; }
.paycell { white-space: nowrap; }
.paycell .check { display: inline-flex; color: var(--ink); }
.paycell .linkbtn { display: block; padding: 6px 0 0; font-size: .85rem; }
@media print { .cancelbtn, .paidbtn { display: none !important; } }

/* paid in Toast sign-off */
.payctl { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.payinfo { font-size: .85rem; color: var(--muted); line-height: 1.35; flex-basis: 100%; white-space: normal; }
.payform { flex-basis: 100%; min-width: 14em; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); white-space: normal; }
.payform label { margin: 0 0 8px; font-size: .9rem; }
.payform input { margin-top: 4px; }
.payform .primary { margin-top: 4px; padding: 10px; font-size: 1rem; }
.payform .actions button:not(.primary) { margin-top: 4px; }
.paycell { white-space: normal; min-width: 11em; }
.paycell .payctl { margin-top: 0; }
@media print { .markpaid, .undopaid, .payform { display: none !important; } }

/* sign-ins */
.mast nav a.me { color: #dcb65f; }
.userlist { list-style: none; margin: 0; padding: 0; }
.userlist li { padding: 12px 0; border-top: 1px solid var(--line); }
.userlist li:first-child { border-top: 0; padding-top: 0; }
.userlist li.off { opacity: .6; }
.userlist .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.userlist .row input { flex: 1; min-width: 10em; width: auto; }

/* crew PIN */
input.pin { max-width: 9em; font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.userlist .row b.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.linkbox { border: 2px solid var(--gold); }
.linkbox input { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
