/* ============================================================
   Carnival Coffee — design system
   ============================================================ */
:root {
    --espresso: #2b1a12;
    --coffee: #4a2c1d;
    --caramel: #c8772f;
    --caramel-2: #e69a44;
    --cream: #fbf3e9;
    --latte: #f1e2cf;
    --ink: #2b1a12;
    --muted: #927e69;
    --line: #ecdcc6;
    --card: #ffffff;
    --ring: rgba(200, 119, 47, .35);

    --new: #e08a1e;
    --making: #2f6fed;
    --ready: #1ba94c;
    --collected: #7c8aa0;
    --cancelled: #d9483b;

    --shadow-sm: 0 2px 8px rgba(74, 44, 29, .08);
    --shadow: 0 10px 30px rgba(74, 44, 29, .14);
    --shadow-lg: 0 24px 60px rgba(43, 26, 18, .22);
    --radius: 18px;
    --radius-lg: 26px;
    --display: "Fredoka", system-ui, sans-serif;
    --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 12% -8%, #fff7ec 0%, transparent 55%),
        radial-gradient(1000px 700px at 105% 0%, #f7e7d2 0%, transparent 50%),
        var(--cream);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: .2px; line-height: 1.1; }

a { color: var(--caramel); text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.2rem);
    background: rgba(43, 26, 18, .9);
    backdrop-filter: saturate(140%) blur(10px);
    color: #fff;
    box-shadow: 0 6px 24px rgba(43, 26, 18, .25);
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-mark {
    font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--caramel-2), var(--caramel));
    border-radius: 14px; box-shadow: var(--shadow-sm);
}
.brand-text { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--body); font-weight: 600; font-size: .68rem; opacity: .65; letter-spacing: .3px; margin-top: 3px; }
.topnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.navlink {
    color: #f4e8db; padding: .5rem .85rem; border-radius: 11px; font-weight: 700; font-size: .92rem;
    transition: background .15s, color .15s;
}
.navlink:hover { background: rgba(255, 255, 255, .12); }
.navlink.active { background: var(--caramel); color: #fff; }
.navlink.subtle { opacity: .6; font-weight: 600; }

/* ---------- Layout ---------- */
.shell { max-width: 1180px; margin: 0 auto; padding: clamp(1.1rem, 3vw, 2rem); }
.full { max-width: 1500px; margin: 0 auto; padding: clamp(1rem, 3vw, 1.8rem); }

/* ---------- Messages ---------- */
.messages { list-style: none; max-width: 760px; margin: 1rem auto 0; padding: 0 1rem; display: grid; gap: .5rem; }
.msg { padding: .7rem 1rem; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); border-left: 5px solid var(--caramel); font-weight: 700; }
.msg.success { border-color: var(--ready); }
.msg.error { border-color: var(--cancelled); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--body); font-weight: 800; font-size: 1rem;
    padding: .8rem 1.3rem; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
    background: #fff; color: var(--coffee); box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .15s, background .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--caramel-2), var(--caramel)); color: #fff; }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.15rem; border-radius: 16px; }
.btn-sm { padding: .5rem .8rem; font-size: .85rem; border-radius: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--caramel);
    background: #fff; padding: .4rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .85rem; letter-spacing: .3px; }

/* ============================================================
   MENU / ORDER PAGE
   ============================================================ */
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.6rem; align-items: start; }
.menu-hero { margin-bottom: 1.4rem; }
.menu-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .7rem 0 .3rem; }
.menu-hero p { color: var(--muted); font-size: 1.05rem; font-weight: 600; margin: 0; }

.cat { margin-bottom: 1.6rem; }
.cat-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: 1.15rem; color: var(--coffee); }
.cat-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); border-radius: 2px; }

.drink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.drink-card {
    position: relative; background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
    padding: 1.1rem 1rem 1rem; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .16s, border-color .16s; overflow: hidden;
}
.drink-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(230,154,68,.12), transparent 60%); opacity: 0; transition: opacity .18s; }
.drink-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ring); }
.drink-card:hover::before { opacity: 1; }
.drink-emoji { font-size: 2.4rem; line-height: 1; display: block; margin-bottom: .55rem; }
.drink-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.drink-desc { color: var(--muted); font-size: .82rem; font-weight: 600; margin-top: .25rem; min-height: 2.2em; }
.drink-add { position: absolute; top: .8rem; right: .8rem; width: 30px; height: 30px; border-radius: 50%;
    background: var(--cream); color: var(--caramel); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow-sm); }

/* ---------- Cart ---------- */
.cart {
    position: sticky; top: 84px; background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 1.3rem; max-height: calc(100vh - 110px); display: flex; flex-direction: column;
}
.cart h2 { font-size: 1.3rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .5rem; }
.cart-sub { color: var(--muted); font-weight: 700; font-size: .85rem; margin: 0 0 1rem; }
.cart-items { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: grid; gap: .6rem; min-height: 40px; }
.cart-empty { text-align: center; color: var(--muted); font-weight: 700; padding: 2rem 1rem; }
.cart-empty .big { font-size: 2.5rem; display: block; margin-bottom: .5rem; filter: grayscale(.3); opacity: .8; }
.ci { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; background: var(--cream); border-radius: 14px; padding: .65rem .75rem; }
.ci-emoji { font-size: 1.5rem; }
.ci-name { font-weight: 800; font-size: .98rem; }
.ci-detail { color: var(--muted); font-size: .76rem; font-weight: 700; }
.ci-qty { font-weight: 800; color: var(--caramel); white-space: nowrap; }
.ci-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: .1rem .3rem; border-radius: 8px; }
.ci-x:hover { color: var(--cancelled); background: #fff; }

.who-where { border-top: 2px dashed var(--line); margin-top: 1rem; padding-top: 1rem; }
.field-label { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--coffee); margin: 0 0 .45rem; display: flex; align-items: center; gap: .4rem; }
.field-label .num { background: var(--caramel); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; }
.text-input {
    width: 100%; font-family: var(--body); font-weight: 700; font-size: 1.05rem; padding: .8rem .9rem;
    border: 2px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.text-input:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px var(--ring); }

.loc-grid { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .4rem; }
.chip {
    font-family: var(--body); font-weight: 700; font-size: .9rem; padding: .5rem .8rem; border-radius: 12px;
    border: 2px solid var(--line); background: #fff; color: var(--coffee); cursor: pointer; transition: all .14s;
    -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--ring); }
.chip.selected { background: linear-gradient(135deg, var(--caramel-2), var(--caramel)); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }

/* ---------- Customise sheet (modal) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(43, 26, 18, .55); backdrop-filter: blur(4px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; display: grid; place-items: end center; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
    background: var(--cream); width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; padding: 1.4rem clamp(1.1rem, 4vw, 1.8rem) 1.6rem;
    box-shadow: var(--shadow-lg); transform: translateY(30px); transition: transform .25s cubic-bezier(.2,.8,.2,1); max-height: 92vh; overflow-y: auto;
}
@media (min-width: 620px) { .sheet-backdrop { place-items: center; } .sheet { border-radius: 26px; } }
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.sheet-emoji { font-size: 2.6rem; }
.sheet-title { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; }
.sheet-title small { display: block; font-family: var(--body); font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.sheet-x { margin-left: auto; background: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--muted); }

.opt-group { margin-bottom: 1.05rem; }
.opt-group > .field-label { margin-bottom: .5rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button {
    flex: 1 1 auto; min-width: 64px; font-family: var(--body); font-weight: 800; font-size: .92rem; padding: .65rem .5rem;
    border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--coffee); cursor: pointer; transition: all .13s;
}
.seg button.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.stepper { display: inline-flex; align-items: center; gap: .9rem; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .35rem .5rem; }
.stepper button { width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--cream); font-size: 1.4rem; font-weight: 800; cursor: pointer; color: var(--coffee); }
.stepper button:hover { background: var(--latte); }
.stepper .val { min-width: 1.4ch; text-align: center; font-weight: 800; font-size: 1.2rem; }
.toggle-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.toggle {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; padding: .6rem .9rem; border-radius: 12px;
    border: 2px solid var(--line); background: #fff; cursor: pointer; user-select: none; transition: all .13s; color: var(--coffee);
}
.toggle.on { background: var(--caramel); border-color: var(--caramel); color: #fff; }
.toggle .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; }
.toggle.on .dot { background: #fff; opacity: 1; border-color: #fff; }
.sheet-actions { display: flex; gap: .7rem; margin-top: 1.3rem; }

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-wrap { max-width: 560px; margin: 0 auto; }
.status-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 5vw, 2.2rem); text-align: center; }
.status-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--coffee); line-height: 1; }
.status-num small { display: block; font-family: var(--body); font-weight: 800; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.status-pill {
    display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.05rem; padding: .6rem 1.2rem;
    border-radius: 999px; color: #fff; margin: 1.1rem 0; box-shadow: var(--shadow-sm);
}
.status-pill .live-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.s-new { background: var(--new); } .s-making { background: var(--making); } .s-ready { background: var(--ready); }
.s-collected { background: var(--collected); } .s-cancelled { background: var(--cancelled); }

.tracker { display: flex; align-items: flex-start; justify-content: space-between; margin: 1.6rem 0; position: relative; }
.tracker::before { content: ""; position: absolute; top: 19px; left: 12%; right: 12%; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.tstep { position: relative; z-index: 1; text-align: center; flex: 1; }
.tstep .bub { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto .4rem; font-size: 1.1rem; transition: all .25s; }
.tstep .lbl { font-weight: 800; font-size: .78rem; color: var(--muted); }
.tstep.done .bub { background: var(--ready); border-color: var(--ready); color: #fff; }
.tstep.current .bub { background: var(--caramel); border-color: var(--caramel); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px var(--ring); }
.tstep.done .lbl, .tstep.current .lbl { color: var(--coffee); }

.status-items { list-style: none; padding: 0; margin: 1.4rem 0 0; text-align: left; display: grid; gap: .55rem; }
.status-items li { background: var(--cream); border-radius: 14px; padding: .7rem .9rem; display: flex; align-items: center; gap: .7rem; }
.status-items .e { font-size: 1.5rem; }
.status-items .n { font-weight: 800; }
.status-items .d { color: var(--muted); font-size: .82rem; font-weight: 700; }
.loc-banner { background: linear-gradient(135deg, var(--espresso), var(--coffee)); color: #fff; border-radius: 16px; padding: 1rem 1.2rem; margin-top: 1.2rem; text-align: left; }
.loc-banner small { opacity: .65; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: .7rem; }
.loc-banner div { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }

/* ============================================================
   BARISTA BOARD
   ============================================================ */
.board-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.board-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.board-head .sub { color: var(--muted); font-weight: 700; }
.board-tools { display: flex; align-items: center; gap: .7rem; }
.livedot { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ready); background: #fff; padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.livedot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ready); animation: pulse 1.4s infinite; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: start; }
.col { background: rgba(255,255,255,.55); border-radius: var(--radius-lg); padding: 1rem; min-height: 200px; border: 2px solid #fff; }
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; padding: 0 .3rem; }
.col-head .t { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.col-head .count { background: var(--espresso); color: #fff; font-weight: 800; font-size: .85rem; min-width: 26px; height: 26px; padding: 0 .5rem; border-radius: 999px; display: grid; place-items: center; }
.col-new .col-head .t .dotc { color: var(--new); } .col-making .col-head .t .dotc { color: var(--making); } .col-ready .col-head .t .dotc { color: var(--ready); }
.col-cards { display: grid; gap: .8rem; }

.ticket { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .95rem; border-left: 6px solid var(--line); animation: pop .25s ease; }
.ticket.is-new { border-left-color: var(--new); } .ticket.is-making { border-left-color: var(--making); } .ticket.is-ready { border-left-color: var(--ready); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ticket.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%,100% { box-shadow: var(--shadow-sm); } 30% { box-shadow: 0 0 0 4px var(--new), var(--shadow); } }
.tk-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tk-num { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--coffee); }
.tk-time { font-weight: 800; font-size: .82rem; color: var(--muted); }
.tk-time.warn { color: var(--cancelled); }
.tk-name { font-weight: 800; margin: .15rem 0 .1rem; }
.tk-loc { display: inline-block; font-weight: 800; font-size: .82rem; color: var(--coffee); background: var(--latte); padding: .25rem .6rem; border-radius: 8px; }
.tk-items { list-style: none; margin: .7rem 0 0; padding: .7rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .5rem; }
.tk-items li { display: flex; gap: .5rem; align-items: flex-start; }
.tk-items .q { font-weight: 800; color: var(--caramel); }
.tk-items .nm { font-weight: 800; }
.tk-items .dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.tk-note { font-size: .8rem; color: var(--coffee); background: #fff7e8; border-radius: 8px; padding: .25rem .5rem; margin-top: .25rem; font-weight: 700; }
.tk-actions { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.tk-actions .btn { flex: 1; }
.board-empty { grid-column: 1/-1; text-align: center; color: var(--muted); font-weight: 700; padding: 3rem 1rem; }
.board-empty .big { font-size: 3rem; display: block; margin-bottom: .5rem; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-head { margin-bottom: 1.3rem; }
.dash-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .2rem; }
.dash-head p { color: var(--muted); font-weight: 700; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--coffee); }
.stat .l { color: var(--muted); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-top: .35rem; }
.stat.accent { background: linear-gradient(140deg, var(--caramel-2), var(--caramel)); color: #fff; }
.stat.accent .n, .stat.accent .l { color: #fff; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.panel h2 { font-size: 1.2rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: .3rem; margin-bottom: .8rem; }
.bar-row .lab { display: flex; justify-content: space-between; font-weight: 800; font-size: .92rem; }
.bar-row .lab .v { color: var(--caramel); }
.bar-track { height: 12px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--caramel-2), var(--caramel)); }
.status-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.status-legend .lg { display: flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .85rem; background: var(--cream); padding: .4rem .75rem; border-radius: 999px; }
.status-legend .lg b { font-size: 1.05rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-height: 380px; overflow-y: auto; }
.feed li { display: flex; align-items: center; gap: .7rem; background: var(--cream); border-radius: 12px; padding: .55rem .8rem; }
.feed .fn { font-family: var(--display); font-weight: 600; color: var(--coffee); }
.feed .fnm { font-weight: 800; flex: 1; }
.feed .fst { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: #fff; padding: .2rem .55rem; border-radius: 999px; }

/* ============================================================
   DOCKET (thermal / recipe printer — 80mm)
   ============================================================ */
.docket-page { display: grid; place-items: center; padding: 2rem 1rem; }
.docket-actions { display: flex; gap: .7rem; margin-bottom: 1.2rem; }
.docket {
    width: 80mm; max-width: 100%; background: #fff; color: #000; padding: 6mm 5mm; border-radius: 10px; box-shadow: var(--shadow);
    font-family: "Courier New", ui-monospace, monospace;
}
.docket .d-center { text-align: center; }
.docket .d-event { font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.docket .d-num { font-size: 30px; font-weight: 700; margin: 4px 0; }
.docket .d-rule { border: none; border-top: 2px dashed #000; margin: 8px 0; }
.docket .d-row { display: flex; justify-content: space-between; font-size: 12px; }
.docket .d-loc { border: 2px solid #000; border-radius: 6px; padding: 6px 8px; margin: 8px 0; text-align: center; }
.docket .d-loc small { font-size: 10px; letter-spacing: 1px; }
.docket .d-loc b { display: block; font-size: 18px; }
.docket .d-item { margin: 7px 0; }
.docket .d-item .t { font-size: 15px; font-weight: 700; }
.docket .d-item .s { font-size: 12px; padding-left: 4px; }
.docket .d-item .note { font-size: 12px; font-style: italic; padding-left: 4px; }
.docket .d-qr { display: block; margin: 6px auto 0; width: 34mm; height: 34mm; }
.docket .d-foot { font-size: 11px; text-align: center; margin-top: 6px; }

@media print {
    @page { size: 80mm auto; margin: 0; }
    body { background: #fff; }
    .topbar, .docket-actions, .messages { display: none !important; }
    .docket-page { padding: 0; display: block; }
    .docket { width: 80mm; box-shadow: none; border-radius: 0; padding: 3mm; }
}

/* ============================================================
   AUTH (login / register)
   ============================================================ */
.auth-card { max-width: 420px; margin: 2.5rem auto; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; text-align: center; }
.auth-mark { font-size: 2.6rem; width: 70px; height: 70px; margin: 0 auto .8rem; display: grid; place-items: center; background: var(--cream); border-radius: 20px; }
.auth-card h1 { font-size: 1.7rem; margin: 0 0 .3rem; }
.auth-sub { color: var(--muted); font-weight: 700; margin: 0 0 1.4rem; }
.auth-card form { display: grid; gap: .8rem; text-align: left; }
.auth-card .text-input { margin: 0; }
.auth-form p { margin: 0; display: grid; gap: .35rem; }
.auth-form label { font-weight: 800; font-size: .85rem; color: var(--coffee); }
.auth-form input, .auth-form select {
    width: 100%; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: .75rem .9rem;
    border: 2px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink);
}
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px var(--ring); }
.auth-form .helptext, .auth-form ul { font-size: .78rem; color: var(--muted); font-weight: 600; margin: .1rem 0 0; padding-left: 1rem; }
.auth-foot { margin: 1.2rem 0 0; font-weight: 700; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
    .order-layout { grid-template-columns: 1fr; }
    .cart { position: static; max-height: none; }
    .dash-grid { grid-template-columns: 1fr; }
    .board { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .topnav .navlink { padding: .45rem .6rem; font-size: .85rem; }
    .brand-text small { display: none; }
}
