:root { font-family: "Microsoft YaHei", Arial, sans-serif; color: #172033; background: #f4f6f8; --brand:#0f766e; --brand-dark:#115e59; --ink:#172033; --muted:#667085; --line:#e4e7ec; --danger:#c93636; }
* { box-sizing: border-box; }
body { margin:0; min-width:320px; background:#f4f6f8; color:var(--ink); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; border:0; border-radius:7px; padding:10px 13px; color:var(--ink); background:#eef1f4; }
button:disabled { opacity:.5; cursor:not-allowed; }
input,select,textarea { width:100%; border:1px solid #d8dee7; border-radius:7px; padding:11px; background:#fff; color:var(--ink); }
textarea { resize:vertical; }
.hidden { display:none!important; }
.weak-network { position:sticky; top:0; z-index:50; padding:9px 16px; text-align:center; color:#fff; background:#c93636; font-size:13px; }
.mobile-topbar { position:sticky; top:0; z-index:30; display:grid; grid-template-columns:1fr auto; gap:7px 12px; padding:calc(10px + env(safe-area-inset-top)) 14px 10px; color:#fff; background:#13283a; }
.store-identity,.top-meta { display:flex; min-width:0; align-items:center; gap:8px; font-size:12px; }
.store-identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; }
.store-identity span,.top-meta span { color:#cbd5e1; }
.state.online { color:#7ee4bf; }.state.offline { color:#ffb1aa; }
.top-actions { grid-column:1/-1; display:flex; align-items:center; gap:7px; }
.top-actions .text-button { margin-left:auto; background:transparent; color:#dce6ee; padding:6px; }
.lang-button,.icon-button { min-width:32px; padding:6px 8px; background:#244258; color:#eaf4fa; }.lang-button.active { background:#fff; color:#13283a; }.icon-button { background:transparent; }
.customer-shell { padding:12px 12px 92px; max-width:1040px; margin:0 auto; }
.customer-view { min-height:calc(100vh - 180px); }
.search-row { position:relative; margin-bottom:12px; }.search-row input { padding-right:40px; }.search-symbol { position:absolute; right:13px; top:10px; font-size:20px; color:#8993a4; }
.menu-layout { display:grid; grid-template-columns:88px minmax(0,1fr); gap:10px; align-items:start; }
.category-rail { position:sticky; top:93px; display:grid; gap:7px; max-height:calc(100vh - 180px); overflow:auto; }
.category-tab { position:relative; min-height:50px; padding:7px; text-align:left; background:#fff; border:1px solid #e6e9ee; font-size:12px; }.category-tab.active { color:#fff; background:var(--brand); border-color:var(--brand); }.category-count { position:absolute; right:4px; top:3px; min-width:18px; padding:1px 4px; border-radius:12px; color:#fff; background:#e24848; font-size:11px; text-align:center; }
.menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.menu-card { min-height:196px; display:flex; flex-direction:column; gap:7px; padding:10px; border:1px solid #e3e8ee; border-radius:8px; background:#fff; overflow:hidden; }.product-image { width:100%; height:74px; border-radius:6px; object-fit:cover; background:#eaf1f1; }.product-image.placeholder { display:grid; place-items:center; color:#fff; background:#5f8f88; font-size:24px; font-weight:700; }.menu-card strong { line-height:1.35; }.menu-card .price { margin-top:auto; color:var(--danger); font-weight:700; }.menu-card button { color:#fff; background:var(--brand); padding:8px; }.allergen { color:#b45309; font-size:11px; }
.mobile-cart-bar { position:fixed; left:0; right:0; bottom:0; z-index:35; padding:9px 12px calc(9px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); border-top:1px solid #dce3ea; box-shadow:0 -6px 18px rgba(15,23,42,.08); }.cart-command { width:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 12px; color:#fff; background:var(--brand); text-align:left; }.cart-command b { padding:4px 0 4px 12px; border-left:1px solid rgba(255,255,255,.35); }.cart-badge { min-width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:var(--brand-dark); background:#fff; font-weight:700; }.cart-label { display:grid; gap:2px; }.cart-label small { color:#d7f5eb; }
.view-title { display:flex; gap:8px; align-items:center; margin:3px 0 16px; }.view-title h1 { margin:0; font-size:20px; }.back-button { padding:7px 0; background:transparent; color:var(--brand-dark); }
.order-card,.status-card { display:flex; justify-content:space-between; gap:12px; padding:14px; border-radius:9px; background:#fff; border:1px solid #e1e7ec; }.order-card div,.status-card { display:grid; gap:4px; }.order-card span,.status-card span,.status-card small { color:var(--muted); font-size:12px; }.status-card strong { color:var(--brand-dark); font-size:18px; }
.checkout-items,.submitted-list { display:grid; gap:8px; margin:14px 0; }.checkout-line,.submitted-line { display:grid; grid-template-columns:1fr auto; gap:8px; padding:12px; border-radius:8px; background:#fff; border:1px solid #e3e8ee; }.checkout-line small,.submitted-line small { display:block; color:var(--muted); margin-top:4px; }.full-field { display:grid; gap:6px; color:var(--muted); font-size:13px; }.checkout-total { display:flex; justify-content:space-between; padding:16px 0; font-size:18px; }.checkout-total strong { color:var(--danger); }.primary { color:#fff; background:var(--brand); }.full-command { width:100%; padding:13px; font-size:16px; }
.order-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }.order-actions button { padding:13px 7px; background:#fff; border:1px solid #dce4e9; }.order-actions .primary { border-color:var(--brand); color:#fff; background:var(--brand); }
.options-dialog { position:fixed; inset:0; z-index:60; display:grid; place-items:end center; padding:12px; background:rgba(15,23,42,.45); }.options-card { width:min(680px,100%); display:grid; gap:12px; padding:18px; border-radius:14px 14px 8px 8px; background:#fff; }.section-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }.section-head h2 { margin:0; font-size:18px; }.options-card label { display:grid; gap:6px; color:var(--muted); font-size:13px; }
.toast { position:fixed; left:50%; bottom:86px; z-index:70; transform:translateX(-50%); max-width:calc(100vw - 32px); padding:11px 14px; border-radius:8px; color:#fff; background:#1f2937; box-shadow:0 10px 25px rgba(0,0,0,.2); }.toast.success { background:#15803d; }.toast.error { background:#b42318; }
.waiter-page { min-height:100vh; padding:16px; background:#f4f6f8; }.waiter-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }.waiter-header h1 { margin:0; font-size:20px; }.login-box,.subpanel { padding:14px; border:1px solid #e0e6eb; border-radius:9px; background:#fff; }.login-grid,.waiter-grid { display:grid; gap:12px; }.waiter-grid { grid-template-columns:1fr; margin-top:12px; }.inline-form,.add-product,.editor-actions,.detail-line { display:grid; gap:8px; }.table-grid,.detail-list { display:grid; gap:8px; margin-top:12px; }.table-card { text-align:left; background:#fff; border:1px solid #dce4e9; }.table-card.active { border-color:var(--brand); box-shadow:0 0 0 2px rgba(15,118,110,.12); }.order-summary { padding:10px; background:#edf9f6; border-radius:7px; }.muted { color:var(--muted); }.line-actions { display:flex; gap:8px; }
@media (min-width:700px) { .mobile-topbar { border-radius:0 0 10px 10px; }.menu-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.customer-shell { padding-left:20px; padding-right:20px; }.waiter-grid { grid-template-columns:360px minmax(0,1fr); }.login-grid { grid-template-columns:1fr 1fr auto; align-items:end; }.inline-form { grid-template-columns:1fr auto; }.add-product { grid-template-columns:minmax(180px,1fr) 90px minmax(160px,1fr) auto; }.editor-actions { grid-template-columns:minmax(220px,1fr) auto 160px auto; align-items:end; }.detail-line { grid-template-columns:minmax(180px,1fr) 90px 120px minmax(140px,1fr) 100px auto; align-items:end; }.options-dialog { place-items:center; }.options-card { border-radius:12px; } }
