/* Design tokens
   Color:  --ink #2B2320 (charcoal-brown, not pure black)
           --paper #FBF7F0 (warm ticket paper)
           --char #C24914 (charred-orange, like a grill mark — the one bold accent)
           --line #E4D9C8 (soft rule/border)
           --leaf #4B6B4A (muted herb green, secondary accent for "available/ready")
   Type:   "Fraunces" for display/numbers (has a ticket/stamp character),
           "Inter" for body/UI text
   Layout: centered ticket-stub card on customer pages, left-aligned dense
           table on staff pages — different jobs, different shapes
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #2B2320;
    --paper: #FBF7F0;
    --char: #C24914;
    --line: #E4D9C8;
    --leaf: #4B6B4A;
    --paper-dim: #F2EAD9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.ticket {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    position: relative;
    padding: 28px 24px;
    margin-bottom: 20px;
}
.ticket::before, .ticket::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    background: var(--paper);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.ticket::before { left: -10px; }
.ticket::after { right: -10px; }

h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0 0 4px;
}
h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 28px 0 10px;
}
.eyebrow {
    color: var(--char);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.sub { color: #6B5F55; font-size: 0.92rem; margin: 0 0 20px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 14px 0 5px;
}
input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--paper);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--char);
    outline-offset: 1px;
}

button, .btn {
    display: inline-block;
    background: var(--char);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button:hover, .btn:hover { background: #A93E0E; }
.btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn.secondary:hover { background: var(--paper-dim); }
.btn.full { width: 100%; }

.queue-number {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 4.2rem;
    line-height: 1;
    color: var(--char);
    letter-spacing: -1px;
}
.status-line { font-size: 0.95rem; color: #6B5F55; margin-top: 6px; }
.status-line strong { color: var(--ink); }

.called-banner {
    display: none;
    background: var(--char);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.called-banner.show { display: block; }

.menu-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: none; }
.mi-name { font-weight: 600; font-size: 0.95rem; }
.mi-desc { color: #6B5F55; font-size: 0.85rem; margin-top: 2px; }
.mi-price { font-weight: 600; white-space: nowrap; }
.mi-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mi-qty button { padding: 4px 11px; font-size: 1rem; }
.mi-qty span { min-width: 18px; text-align: center; font-weight: 600; }
.cat-label {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--char);
    margin: 22px 0 4px;
    font-size: 1.05rem;
}
.cat-label:first-child { margin-top: 0; }

.cart-bar {
    position: sticky;
    bottom: 0;
    background: var(--ink);
    color: #fff;
    padding: 14px 16px;
    border-radius: 4px;
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.cart-bar.show { display: flex; }
.cart-bar button { background: var(--char); }

/* Staff dashboard */
.staff-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
}
.staff-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px;
}
.panel h2 { margin-top: 0; }

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
}
.row:last-child { border-bottom: none; }
.row-num {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--char);
    min-width: 52px;
}
.row-info { flex: 1; }
.row-name { font-weight: 600; font-size: 0.92rem; }
.row-meta { font-size: 0.8rem; color: #6B5F55; }
.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--paper-dim);
    color: var(--ink);
}
.tag.ready { background: #E4EDE3; color: var(--leaf); }
.row button { padding: 8px 14px; font-size: 0.85rem; }
.empty { color: #9C9186; font-size: 0.88rem; padding: 12px 0; }

.admin-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
