:root { --paper:#f6eddd; --white:#fffaf2; --ink:#2f2119; --muted:#745f50; --red:#8f2723; --line:rgba(47,33,25,.2); font-family:Inter,"Noto Sans SC",system-ui,sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; } body { margin:0; } button,input,select,textarea { font:inherit; } button { border:1px solid var(--ink); background:var(--white); border-radius:9px; padding:9px 13px; cursor:pointer; } button.primary, button[type="submit"] { background:var(--red); color:white; border-color:var(--red); } input,select,textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); } label { display:grid; gap:6px; font-weight:700; color:var(--muted); }
.dashboard-header { min-height:72px; padding:12px max(20px,calc((100% - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); background:var(--white); position:sticky; top:0; z-index:5; } .dashboard-header div { display:grid; text-align:center; } .dashboard-header small { color:var(--muted); } main { width:min(1180px,calc(100% - 32px)); margin:40px auto 100px; } .signin-card { width:min(520px,100%); margin:10vh auto; padding:34px; background:var(--white); border:1px solid var(--line); border-radius:16px; } .signin-card form { display:grid; gap:14px; } .signin-card a { color:var(--red); font-weight:700; } .auth-switch { margin-top:22px; color:var(--muted); } .eyebrow { margin:0 0 6px; color:var(--red); font-size:.76rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; } h1 { font-family:Georgia,serif; font-size:clamp(2rem,5vw,3.6rem); margin:0 0 16px; }
.tabs { display:flex; gap:8px; overflow:auto; padding-bottom:16px; border-bottom:1px solid var(--line); } .tabs button { flex:none; white-space:nowrap; } .tabs button[aria-selected="true"] { background:var(--ink); color:white; } .tab-panel { padding-top:32px; } .tab-panel > header { display:flex; align-items:start; justify-content:space-between; gap:20px; margin-bottom:24px; } .button-row,.inline-form { display:flex; gap:10px; flex-wrap:wrap; } .status { min-height:1.5em; color:var(--red); }
.card-list { display:grid; gap:14px; } .dashboard-card { background:var(--white); border:1px solid var(--line); border-radius:14px; padding:18px; } .dashboard-card header { display:flex; justify-content:space-between; gap:16px; } .dashboard-card h2 { margin:0; font-size:1.15rem; } .dashboard-card p { margin:8px 0; } .dashboard-card small { color:var(--muted); } .card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; } .card-actions input { width:145px; }
.menu-category-editor { margin-bottom:28px; padding:18px; background:rgba(255,250,242,.58); border:1px solid var(--line); border-radius:14px; } .category-editor-heading { display:flex; align-items:end; gap:10px; margin-bottom:12px; } .category-editor-heading label { flex:1; } .category-editor-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; } .danger-button { color:var(--red); border-color:var(--red); } .dish-editor { display:grid; grid-template-columns:1.2fr 1fr 110px 100px; gap:10px; align-items:end; padding:12px 0; border-top:1px solid var(--line); } .dish-editor .description { grid-column:1/3; } .dish-editor .photo { grid-column:3/5; } .dish-editor .delete-dish { grid-column:4; justify-self:end; } details { margin-top:30px; } details textarea { margin:12px 0; font-family:ui-monospace,monospace; } .settings-form { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .wide { grid-column:1/-1; } .checkbox { grid-template-columns:auto 1fr; align-items:center; } .checkbox input { width:auto; } .hours-editor { display:grid; gap:8px; margin-top:12px; } .hours-row { display:grid; grid-template-columns:100px 1fr 1fr auto; gap:10px; align-items:end; } .inline-form input { width:min(240px,100%); } .inline-form select { width:210px; }
#dashboard-status { position:sticky; top:72px; z-index:4; margin:0; padding:0; font-weight:700; } #dashboard-status:not(:empty) { padding:10px 14px; background:var(--white); border:1px solid var(--line); border-radius:10px; }
.live-state { margin:0; padding:6px 10px; display:inline-block; border-radius:8px; background:#ece6dc; color:var(--muted); font-weight:700; font-size:.9rem; } .live-state:empty { display:none; } .live-state.is-live { background:#dcefe1; color:#1f4a2c; }
.export-panel { margin:0 0 18px; padding:12px 16px; background:var(--white); border:1px solid var(--line); border-radius:12px; } .export-panel summary { cursor:pointer; font-weight:700; } .export-panel form { margin-top:12px; align-items:end; } .export-panel label { font-weight:600; } .export-panel input { width:170px; } .export-note { margin:10px 0 0; color:var(--muted); font-size:.9rem; }
.card-actions .delete-order { margin-left:auto; }
.asap-badge { display:inline-block; padding:1px 8px; border-radius:99px; background:var(--red); color:white; font-size:.8rem; font-weight:800; letter-spacing:.04em; }
.staff-pending { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #b7791f; background: #fff8e6; color: #6b4a12; font-weight: 700; }
.extras-editor-panel { margin:0 0 28px; padding:18px; background:var(--white); border:1px solid var(--line); border-radius:14px; } .extras-editor-panel > header { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:12px; } .extras-editor-panel h2 { margin:0 0 4px; font-size:1.3rem; } .extras-editor-panel p { margin:0; color:var(--muted); }
.extra-editor { display:grid; grid-template-columns:1.3fr 1fr 110px auto auto; gap:10px; align-items:end; padding:10px 0; border-top:1px solid var(--line); } .extra-actions { display:flex; gap:6px; }
@media (max-width:760px) { .extra-editor { grid-template-columns:1fr 1fr; } .extra-actions { grid-column:1/-1; } .extras-editor-panel > header { display:block; } }
.live-indicator { margin:0; color:#356044; font-weight:700; font-size:.9rem; } .live-indicator.paused { color:var(--muted); }
.filter-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; } .filter-chips button[aria-pressed="true"] { background:var(--ink); color:white; } .chip-count { display:inline-block; min-width:1.6em; margin-left:4px; padding:0 6px; border-radius:99px; background:var(--paper); color:var(--ink); font-size:.85em; font-weight:700; }
.status-badge { align-self:start; padding:4px 10px; border-radius:99px; background:var(--paper); white-space:nowrap; } .order-card { border-left:6px solid var(--line); }
.status-pending,.status-changes_requested { border-left-color:#c7831f; } .status-pending .status-badge,.status-changes_requested .status-badge { background:#fbe7c6; color:#6b4200; }
.status-accepted { border-left-color:#356044; } .status-accepted .status-badge { background:#dcefe1; color:#1f4a2c; }
.status-ready { border-left-color:#2f5d8a; } .status-ready .status-badge { background:#dbe7f3; color:#1d3f61; }
.status-completed .status-badge { background:#ece6dc; color:var(--muted); } .status-declined,.status-cancelled { border-left-color:var(--muted); opacity:.85; } .status-declined .status-badge,.status-cancelled .status-badge { background:#ece6dc; color:var(--muted); }
.last-action { color:var(--muted); font-size:.92rem; } .customer-message { padding:8px 12px; background:#fbe7c6; border-radius:8px; } .order-card.is-new { outline:3px solid #c7831f; outline-offset:2px; }
.pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:22px; color:var(--muted); } .pagination:empty { display:none; } button:disabled { opacity:.45; cursor:default; }
@media (max-width:760px) { main { margin-top:22px; } .dashboard-header div { display:none; } .tab-panel > header { display:block; } .dish-editor,.settings-form { grid-template-columns:1fr; } .category-editor-heading { align-items:stretch; flex-direction:column; } .dish-editor .description,.dish-editor .photo,.dish-editor .delete-dish,.wide { grid-column:auto; } .dish-editor .delete-dish { justify-self:start; } .hours-row { grid-template-columns:76px 1fr 1fr; } .hours-row .closed { grid-column:2/4; } .inline-form { display:grid; } .inline-form input,.inline-form select { width:100%; } }
