/* Empire House Orders. Same alabaster, toffee and espresso as the Leadership Comms app. */
:root {
  --alabaster: #F3EFE4; --card: #FBF9F3; --line: #E0D8C8; --line-strong: #CFC5B2; --tile: #E6DFCF;
  --toffee: #A65434; --toffee-deep: #8F4426; --toffee-tint: #F1DFD3; --ink: #2B1D14; --muted: #6B5848; --on-dark: #F3EFE4;
  --display: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(43, 29, 20, .05), 0 8px 24px rgba(43, 29, 20, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--alabaster); }
body { color: var(--ink); font: 400 16px/1.45 var(--body); -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 140px; display: flex; flex-direction: column; gap: 16px; }
.wrap.wide { max-width: 860px; padding-bottom: 60px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head img { height: 44px; width: auto; }
.title { font: 700 30px/1.15 var(--display); letter-spacing: -0.02em; }
.h2 { font: 700 18px/1.3 var(--display); }
.label { font: 600 12px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.hero { border-radius: 28px; padding: 20px; background: var(--toffee); color: #fff; box-shadow: 0 16px 40px rgba(43, 29, 20, .16); display: flex; flex-direction: column; gap: 6px; }
.hero .eyebrow { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.hero .big { font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 6px 16px; box-shadow: var(--shadow); }
.card.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.item { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .name { flex: 1; min-width: 0; font: 600 16px/1.25 var(--display); }
.item.on .name { color: var(--toffee-deep); }
.step { display: flex; align-items: center; gap: 4px; }
.step button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; font: 600 22px/1 var(--display); }
.step button.plus { background: var(--toffee); border-color: var(--toffee); color: #fff; }
.step output { min-width: 28px; text-align: center; font: 700 18px var(--display); }
.field { display: flex; flex-direction: column; gap: 6px; }
.input, textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--card); font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
.btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--toffee); color: #fff; font: 700 15px var(--display); }
.btn.big { min-height: 58px; width: 100%; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); font-weight: 600; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn:disabled { background: var(--line-strong); color: var(--ink); cursor: not-allowed; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(243, 239, 228, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bar > div { max-width: 528px; margin: 0 auto; }
.err { color: var(--toffee-deep); font-weight: 600; }
.done { min-height: 100vh; background: var(--toffee); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 24px; text-align: center; }
.done img { width: 190px; }
.done .tick { width: 96px; height: 96px; border-radius: 50%; background: var(--alabaster); color: var(--toffee); display: flex; align-items: center; justify-content: center; }
.done .btn { background: var(--ink); color: var(--on-dark); }
.done ul { list-style: none; padding: 0; margin: 0; font-weight: 600; }
/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line-strong); background: transparent; font: 600 14px var(--display); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.grid { display: grid; gap: 8px 10px; align-items: center; }
.grid.items { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 72px 84px auto; }
.grid .input { min-height: 44px; padding: 8px 10px; }
.grid label.small { display: flex; align-items: center; gap: 6px; }
.grid input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--toffee); }
@media (max-width: 640px) { .grid.items { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--line); } }
.order { padding: 12px 0; border-top: 1px solid var(--line); }
.order:first-child { border-top: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-weight: 600; font-size: 12px; background: var(--tile); }
.tag.warn { background: var(--ink); color: var(--on-dark); }
.qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.qr img { width: 100%; height: auto; }
.qr .scan { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--toffee-deep); }
@media print { .noprint { display: none !important; } body, html { background: #fff; } .qr { break-inside: avoid; } }
