:root {
  --yellow: #ffd91a;
  --yellow-deep: #f4bd00;
  --yellow-soft: #fff7c8;
  --pink: #f52f68;
  --pink-dark: #d91e55;
  --pink-soft: #fff0f5;
  --brown: #37180d;
  --brown-2: #755343;
  --cream: #fffdf5;
  --line: #eadfd2;
  --white: #fff;
  --green: #1a936f;
  --shadow: 0 16px 40px rgba(55, 24, 13, .1);
  --font: Tahoma, "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--brown); font-family: var(--font); background: var(--cream); line-height: 1.45; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(245, 47, 104, .35); outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 50; min-height: 72px; padding: 10px max(18px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; font-size: 30px; border-radius: 16px; background: var(--yellow); box-shadow: inset 0 -4px 0 rgba(244, 189, 0, .45); transform: rotate(-4deg); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.brand small { margin-top: 3px; color: var(--pink); font-size: 10px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav-logout, .staff-login { border: 0; padding: 10px 14px; color: var(--brown-2); background: transparent; border-radius: 12px; font-weight: 700; font-size: 14px; }
.nav a:hover, .nav a.active { background: var(--yellow-soft); color: var(--brown); }
.nav form { margin: 0; }
.nav-logout { color: var(--pink); }
.staff-login { background: var(--pink-soft); color: var(--pink-dark); }
.page-shell { width: min(1440px, 100%); min-height: calc(100vh - 125px); margin: 0 auto; padding: 28px 22px 48px; }
.footer { padding: 18px 24px; color: #9b8174; text-align: center; font-size: 12px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 4px; color: var(--pink); font-size: 12px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -1px; }
.today-chip { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 12px; min-width: 220px; padding: 12px 16px; border: 1px solid #f2d900; border-radius: 18px; background: linear-gradient(135deg, #fffbe1, #fff3a2); }
.today-chip span { color: var(--brown-2); font-size: 12px; font-weight: 700; }
.today-chip b { grid-column: 2; grid-row: 1 / span 2; color: var(--pink-dark); font-size: 25px; }
.today-chip small { font-size: 11px; color: var(--brown-2); }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.catalog { min-width: 0; }
.catalog-tools { position: sticky; top: 72px; z-index: 20; margin: -4px 0 18px; padding: 10px 0 12px; background: linear-gradient(var(--cream) 80%, transparent); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--white); }
.search-box span { color: var(--pink); font-size: 25px; line-height: 1; }
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; color: var(--brown); background: transparent; font-size: 16px; }
.category-tabs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: none; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--brown-2); background: var(--white); font-size: 12px; font-weight: 700; }
.category-tab.active { border-color: var(--pink); color: var(--white); background: var(--pink); }
.product-section { margin-bottom: 25px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title > span { color: var(--brown-2); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.product-card { position: relative; display: flex; min-height: 138px; padding: 15px; overflow: hidden; flex-direction: column; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 19px; color: var(--brown); background: var(--white); text-align: left; box-shadow: 0 3px 10px rgba(55, 24, 13, .035); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #f4ca00; box-shadow: 0 10px 22px rgba(55, 24, 13, .08); }
.product-card:active { transform: scale(.975); }
.product-card.in-cart { border-color: var(--pink); background: linear-gradient(145deg, #fff, var(--pink-soft)); }
.product-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 9px; border-radius: 12px; background: var(--yellow-soft); font-size: 21px; }
.product-name { padding-right: 25px; font-weight: 800; line-height: 1.3; }
.product-price { margin-top: auto; padding-top: 7px; color: var(--pink-dark); font-size: 13px; font-weight: 900; }
.add-badge { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 6px; border-radius: 10px; color: var(--brown); background: var(--yellow); font-weight: 900; }
.product-card.in-cart .add-badge { color: var(--white); background: var(--pink); }

.cart-panel { position: sticky; top: 88px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--white); box-shadow: var(--shadow); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.cart-head p { margin: 0; font-size: 17px; font-weight: 900; }
.cart-head small { color: var(--brown-2); }
.text-btn { padding: 7px 10px; border: 0; color: var(--pink); background: var(--pink-soft); border-radius: 9px; font-size: 12px; font-weight: 800; }
.text-btn:disabled { opacity: .35; cursor: default; }
.cart-items { max-height: 290px; padding: 8px 18px; overflow-y: auto; }
.cart-empty { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; color: var(--brown-2); }
.cart-empty span { font-size: 32px; }
.cart-empty b { margin-top: 7px; color: var(--brown); }
.cart-empty small { margin-top: 3px; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row-info { min-width: 0; display: flex; flex-direction: column; }
.cart-row-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cart-row-info small { color: var(--brown-2); font-size: 11px; }
.cart-row > strong { align-self: center; color: var(--pink-dark); font-size: 14px; }
.qty-control { display: flex; align-items: center; grid-row: 2; gap: 3px; }
.qty-control span { min-width: 27px; text-align: center; font-weight: 900; }
.qty-btn { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 9px; color: var(--brown); background: var(--yellow-soft); font-weight: 900; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding: 15px 20px; border-top: 1px solid var(--line); background: var(--yellow-soft); font-weight: 800; }
.cart-total b { color: var(--pink-dark); font-size: 25px; }
.payment-fieldset { margin: 14px 18px 0; padding: 0; border: 0; }
.payment-fieldset legend { margin-bottom: 7px; color: var(--brown-2); font-size: 12px; font-weight: 800; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-options label { position: relative; }
.payment-options input { position: absolute; opacity: 0; }
.payment-options span { display: block; padding: 11px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font-size: 13px; font-weight: 800; }
.payment-options input:checked + span { border-color: var(--pink); color: var(--pink-dark); background: var(--pink-soft); }
.cash-fields { margin: 13px 18px 0; }
.cash-fields > label, .note-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--brown-2); font-size: 12px; font-weight: 800; }
.cash-fields input, .note-field input { min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; color: var(--brown); background: var(--white); text-align: right; font-weight: 800; outline: 0; }
.cash-fields input:focus, .note-field input:focus { border-color: var(--pink); }
.quick-cash { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.quick-cash button { padding: 6px 8px; border: 1px solid #efd86a; border-radius: 8px; color: var(--brown); background: var(--yellow-soft); font-size: 11px; font-weight: 800; }
.change-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 11px; color: var(--green); background: #eaf8f2; font-size: 13px; font-weight: 800; }
.cash-fields.short .change-row { color: var(--pink-dark); background: var(--pink-soft); }
.note-field { margin: 13px 18px; }
.note-field input { width: 68%; font-weight: 500; }
.checkout-btn, .primary-btn, .secondary-btn { display: block; border: 0; border-radius: 14px; font-weight: 900; text-align: center; }
.checkout-btn { width: calc(100% - 36px); margin: 0 18px 18px; padding: 15px; color: var(--white); background: var(--pink); box-shadow: 0 8px 20px rgba(245, 47, 104, .22); }
.checkout-btn:not(:disabled):hover { background: var(--pink-dark); }
.checkout-btn:disabled { color: #9f8c82; background: #eee7e1; box-shadow: none; cursor: default; }

.alert { margin-bottom: 18px; padding: 12px 15px; border-radius: 13px; font-size: 13px; line-height: 1.65; }
.alert.error { border: 1px solid #f4a7bc; color: #a81440; background: var(--pink-soft); }
.alert.success { border: 1px solid #aee2d0; color: #11694f; background: #eaf8f2; }
.alert.warning { border: 1px solid #ecd457; background: var(--yellow-soft); }
.alert code { padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.6); }
.empty-state { padding: 55px 20px; color: var(--brown-2); text-align: center; }
.empty-state span, .empty-state b { display: block; }
.empty-state span { margin-bottom: 6px; font-size: 34px; }

.date-filter label { display: flex; flex-direction: column; gap: 4px; color: var(--brown-2); font-size: 11px; font-weight: 800; }
.date-filter input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--brown); background: var(--white); font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 13px; margin-bottom: 20px; }
.summary-card { display: flex; min-height: 125px; padding: 20px; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.summary-card.highlight { border-color: #f0d432; background: linear-gradient(145deg, #fffbe6, #fff3a5); }
.summary-card span { color: var(--brown-2); font-size: 12px; font-weight: 700; }
.summary-card b { margin-top: auto; font-size: 27px; }
.summary-card.highlight b { color: var(--pink-dark); }
.summary-card small { color: var(--brown-2); }
.orders-card { overflow: hidden; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.order-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 12px; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); }
.order-row:hover { background: #fffcf0; }
.payment-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #755500; background: var(--yellow-soft); font-weight: 900; }
.payment-dot.transfer { color: #0e6a50; background: #eaf8f2; }
.order-main { display: flex; min-width: 0; flex-direction: column; }
.order-main b { font-size: 14px; }
.order-main small { overflow: hidden; color: var(--brown-2); text-overflow: ellipsis; white-space: nowrap; }
.order-row > strong { color: var(--pink-dark); }
.row-arrow { color: #b9a79d; font-size: 25px; }

.receipt-wrap { max-width: 590px; margin: 0 auto; }
.receipt-success { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #aee2d0; border-radius: 15px; color: #11694f; background: #eaf8f2; }
.receipt-success > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--white); background: var(--green); font-weight: 900; }
.receipt-success div { display: flex; flex-direction: column; }
.receipt-success small { color: #4c806f; }
.receipt { padding: 28px; border: 1px solid var(--line); border-radius: 23px; background: var(--white); box-shadow: var(--shadow); }
.receipt > header { text-align: center; }
.receipt-logo { font-size: 43px; }
.receipt h1 { margin: 2px 0 0; font-size: 27px; }
.receipt header p { margin: 1px 0 18px; color: var(--pink); font-size: 11px; font-weight: 800; }
.receipt-meta { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-block: 1px dashed var(--line); color: var(--brown-2); font-size: 11px; }
.receipt-lines { padding: 7px 0; }
.receipt-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.receipt-line div { display: flex; flex-direction: column; }
.receipt-line b { font-size: 14px; }
.receipt-line small { color: var(--brown-2); }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; margin: 5px 0 8px; padding: 14px 0; border-block: 2px solid var(--brown); font-weight: 900; }
.receipt-total b { color: var(--pink-dark); font-size: 25px; }
.receipt-payment { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.receipt-note { margin-top: 10px; padding: 9px; border-radius: 9px; background: var(--yellow-soft); font-size: 12px; }
.receipt footer { display: flex; margin-top: 20px; padding-top: 17px; flex-direction: column; align-items: center; border-top: 1px dashed var(--line); color: var(--brown-2); }
.receipt footer b { color: var(--brown); }
.receipt footer small { margin-top: 9px; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 9px; margin-top: 14px; }
.primary-btn, .secondary-btn { padding: 13px 15px; }
.primary-btn { color: var(--white); background: var(--pink); }
.primary-btn:disabled { opacity: .4; cursor: not-allowed; }
.secondary-btn { border: 1px solid var(--line); color: var(--brown); background: var(--white); }

.auth-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: radial-gradient(circle at 15% 10%, #fff48e, transparent 35%), radial-gradient(circle at 90% 85%, #ffc4d5, transparent 30%), var(--yellow); }
.auth-card { width: min(430px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 24px 65px rgba(55,24,13,.17); }
.auth-card.wide { width: min(520px, 100%); }
.auth-brand { margin-bottom: 23px; text-align: center; }
.auth-brand > span { font-size: 54px; }
.auth-brand h1 { margin: 4px 0 0; font-size: 27px; }
.auth-brand p { margin: 2px 0 0; color: var(--pink); font-size: 12px; font-weight: 800; }
.stack-form { display: flex; flex-direction: column; gap: 13px; }
.stack-form label { color: var(--brown-2); font-size: 12px; font-weight: 800; }
.stack-form label small { font-weight: 500; }
.stack-form input { width: 100%; margin-top: 5px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--brown); background: var(--white); outline: 0; }
.stack-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.stack-form .primary-btn { margin-top: 4px; }
.public-link { display: block; margin-top: 18px; color: var(--pink-dark); text-align: center; font-size: 12px; font-weight: 800; }

.public-page { background: #fff9cf; }
.public-page .page-shell { width: min(1100px, 100%); padding-top: 22px; }
.menu-hero { display: grid; grid-template-columns: 1fr minmax(300px, 440px); align-items: center; gap: 35px; min-height: 450px; padding: 42px 45px; overflow: hidden; border-radius: 34px; background: radial-gradient(circle at 25% 15%, #fff586 0 8%, transparent 25%), linear-gradient(135deg, #ffe838, #ffc800); box-shadow: 0 20px 50px rgba(176, 122, 0, .18); }
.menu-hero > div { position: relative; z-index: 2; }
.hero-banana { font-size: 57px; }
.menu-hero p { margin: 10px 0 3px; color: var(--pink-dark); font-weight: 900; }
.menu-hero h1 { margin: 0; font-size: clamp(38px, 5.7vw, 70px); line-height: 1.07; letter-spacing: -3px; }
.menu-hero small { display: inline-block; margin-top: 18px; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.7); font-weight: 800; }
.menu-order-cta { display: table; margin-top: 13px; padding: 12px 17px; border-radius: 13px; color: var(--white); background: var(--pink); box-shadow: 0 8px 20px rgba(245,47,104,.25); font-weight: 900; }
.menu-hero img { width: 100%; max-height: 410px; border: 9px solid rgba(255,255,255,.85); border-radius: 25px; object-fit: cover; object-position: top; transform: rotate(2deg); box-shadow: 0 16px 35px rgba(55,24,13,.2); }
.public-menu { margin-top: 25px; }
.public-title { margin: 42px 0 18px; text-align: center; }
.public-title p { margin: 0; color: var(--pink); font-weight: 900; }
.public-title h2 { margin: 4px 0; font-size: 28px; }
.menu-price-group { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 20px; margin-bottom: 13px; padding: 20px; border: 1px solid rgba(240, 205, 0, .5); border-radius: 22px; background: rgba(255,255,255,.78); }
.price-bubble { display: grid; width: 92px; height: 92px; place-items: center; border: 5px solid var(--white); border-radius: 50%; color: var(--white); background: var(--pink); box-shadow: 0 4px 0 #cc1c4d; font-size: 18px; font-weight: 900; text-align: center; }
.menu-price-group h3 { margin: 0 0 10px; color: var(--brown); font-size: 16px; }
.menu-names { display: flex; flex-wrap: wrap; gap: 7px; }
.menu-names span { padding: 7px 10px; border-radius: 9px; background: var(--yellow-soft); font-size: 13px; font-weight: 800; }
.menu-footer-card { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 24px; padding: 22px; border-radius: 22px; color: var(--white); background: var(--brown); }
.menu-footer-card > span { font-size: 36px; }
.menu-footer-card b { font-size: 19px; }
.menu-footer-card p { margin: 1px 0 0; color: #e8d6ca; font-size: 12px; }

/* ลูกค้าสแกน QR และสั่งด้วยตัวเอง */
.customer-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 25px; padding: 28px 34px; border-radius: 27px; background: linear-gradient(135deg, #ffe536, #ffcc00); box-shadow: 0 12px 32px rgba(176,122,0,.14); }
.customer-hero > span { font-size: 66px; filter: drop-shadow(0 6px 3px rgba(120,80,0,.16)); }
.customer-hero p { margin: 0; color: var(--pink-dark); font-size: 13px; font-weight: 900; }
.customer-hero h1 { margin: 3px 0; font-size: clamp(27px, 4vw, 43px); line-height: 1.12; letter-spacing: -1.5px; }
.customer-hero small { color: #6d4a17; font-weight: 700; }
.customer-alert { margin-inline: auto; max-width: 700px; }
.customer-order-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; align-items: start; gap: 22px; }
.customer-cart { top: 88px; }
.customer-fields { display: flex; padding: 15px 18px 5px; flex-direction: column; gap: 11px; }
.customer-fields label { color: var(--brown-2); font-size: 12px; font-weight: 800; }
.customer-fields label b { color: var(--pink); }
.customer-fields input { width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 11px; color: var(--brown); background: var(--white); outline: 0; }
.customer-fields input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.customer-cart .checkout-btn { margin-top: 12px; margin-bottom: 8px; }
.pay-at-shop { margin: 0 15px 15px; color: var(--brown-2); text-align: center; font-size: 10.5px; }
.cart-jump { position: fixed; z-index: 45; right: 14px; bottom: 14px; left: 14px; display: none; width: calc(100% - 28px); padding: 14px 18px; border: 0; border-radius: 16px; color: var(--white); background: var(--pink); box-shadow: 0 10px 28px rgba(245,47,104,.35); font-weight: 900; }
.cart-jump b { float: right; }

.status-card { max-width: 600px; margin: 18px auto 14px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.status-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--yellow-soft); font-size: 36px; }
.status-card > p { margin: 0; color: var(--brown-2); font-size: 12px; font-weight: 700; }
.status-card h1 { margin: 2px 0 12px; font-size: 30px; }
.status-pill { display: inline-block; padding: 8px 15px; border-radius: 999px; color: #7c5700; background: var(--yellow-soft); font-size: 13px; font-weight: 900; }
.status-accepted .status-pill { color: #11694f; background: #eaf8f2; }
.status-completed .status-icon { color: var(--white); background: var(--green); }
.status-completed .status-pill { color: #11694f; background: #eaf8f2; }
.status-cancelled .status-icon { color: var(--white); background: #a8948a; }
.status-cancelled .status-pill { color: #66534a; background: #eee8e4; }
.status-card > small { display: block; margin-top: 11px; color: var(--brown-2); }
.customer-receipt { max-width: 600px; margin: 0 auto; padding: 21px 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.82); }
.customer-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.customer-order-meta small { color: var(--brown-2); }
.customer-order-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.customer-order-total { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 13px; border-top: 2px solid var(--brown); font-weight: 900; }
.customer-order-total b { color: var(--pink-dark); font-size: 20px; }
.customer-order-note { padding: 9px 11px; border-radius: 9px; background: var(--yellow-soft); font-size: 12px; }
.status-actions { display: flex; max-width: 600px; justify-content: center; gap: 9px; margin: 14px auto; }

/* จอรับออเดอร์พนักงาน */
.incoming-heading { align-items: center; }
.live-indicator { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: #11694f; background: #eaf8f2; font-size: 12px; font-weight: 800; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(26,147,111,.5); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(26,147,111,0); } 100% { box-shadow: 0 0 0 0 rgba(26,147,111,0); } }
.incoming-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 14px; }
.incoming-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 20px; background: var(--white); }
.incoming-empty small { display: block; margin-top: 4px; }
.incoming-card { overflow: hidden; border: 1.5px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 7px 20px rgba(55,24,13,.06); }
.incoming-card.pending { border-color: #efcf1c; }
.incoming-card.accepted { border-color: #90d5bf; }
.incoming-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 17px 11px; background: var(--yellow-soft); }
.incoming-card.accepted > header { background: #eaf8f2; }
.incoming-card h2 { display: inline; margin: 0 0 0 7px; font-size: 17px; }
.incoming-card time { color: var(--brown-2); font-weight: 800; }
.order-badge { display: inline-block; padding: 4px 7px; border-radius: 7px; color: #765400; background: var(--yellow); font-size: 10px; font-weight: 900; }
.accepted .order-badge { color: var(--white); background: var(--green); }
.customer-name { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; border-bottom: 1px solid var(--line); }
.customer-name span { padding: 4px 8px; border-radius: 8px; color: var(--pink-dark); background: var(--pink-soft); font-size: 11px; font-weight: 800; }
.incoming-lines { padding: 8px 17px; }
.incoming-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; }
.incoming-lines span b { color: var(--pink-dark); }
.incoming-note { margin: 0 17px 10px; padding: 8px 10px; border-radius: 9px; color: #795900; background: var(--yellow-soft); font-size: 12px; }
.incoming-total { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 17px; border-top: 1px solid var(--line); font-weight: 800; }
.incoming-total b { color: var(--pink-dark); font-size: 21px; }
.incoming-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 11px 17px 16px; }
.incoming-actions form { margin: 0; }
.incoming-actions button { width: 100%; padding: 11px 9px; border: 0; border-radius: 11px; font-weight: 900; }
.cancel-btn { color: var(--pink-dark); background: var(--pink-soft); }
.accept-btn, .complete-btn { color: var(--white); background: var(--green); }
.complete-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 17px 0; }
.complete-fields select, .complete-fields input { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.recent-customer-orders { margin-top: 22px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.recent-customer-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.status-text { color: var(--brown-2); }
.status-text.completed { color: var(--green); }
.status-text.cancelled { color: var(--pink-dark); }

/* ป้าย QR */
.qr-page { max-width: 650px; margin: 0 auto; }
.qr-sheet { display: flex; padding: 34px; flex-direction: column; align-items: center; border: 12px solid var(--yellow); border-radius: 32px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.qr-banana { font-size: 48px; }
.qr-sheet p { margin: 3px 0 0; color: var(--pink-dark); font-size: 16px; font-weight: 900; }
.qr-sheet h1 { margin: 0 0 12px; font-size: 39px; }
.qr-sheet img { width: min(340px,100%); image-rendering: pixelated; }
.qr-sheet > b { margin-top: 13px; font-size: 17px; }
.qr-sheet > small { margin-top: 5px; color: var(--brown-2); }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 14px; }

@media (max-width: 980px) {
  .pos-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .menu-hero { grid-template-columns: 1fr 340px; padding: 32px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 64px; padding: 8px 13px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 26px; }
  .brand b { font-size: 18px; }
  .brand small { display: none; }
  .nav { gap: 2px; }
  .nav a, .nav-logout { padding: 9px 8px; font-size: 12px; }
  .nav a[target] { display: none; }
  .page-shell { padding: 20px 13px 35px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .today-chip { width: 100%; }
  .pos-layout { display: flex; flex-direction: column; }
  .catalog { width: 100%; }
  .catalog-tools { top: 63px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { min-height: 128px; padding: 13px; }
  .cart-panel { position: relative; top: auto; width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card.highlight { grid-column: 1 / -1; }
  .menu-hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .menu-hero img { max-height: none; transform: none; }
  .customer-order-layout { display: flex; padding-bottom: 64px; flex-direction: column; }
  .customer-catalog, .customer-cart { width: 100%; }
  .customer-cart { position: relative; top: auto; }
  .cart-jump:not([hidden]) { display: block; }
  .customer-hero { padding: 22px; }
  .customer-hero > span { font-size: 48px; }
  .status-actions { flex-direction: column; }
  .qr-actions { grid-template-columns: 1fr; }
  .receipt-actions { grid-template-columns: 1fr 1fr; }
  .receipt-actions .primary-btn { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 480px) {
  .page-heading h1 { font-size: 25px; }
  .pos-heading { margin-bottom: 14px; }
  .today-chip { padding: 9px 12px; }
  .today-chip b { font-size: 21px; }
  .product-grid { gap: 8px; }
  .product-card { min-height: 120px; border-radius: 16px; }
  .product-name { font-size: 13px; }
  .cart-panel { border-radius: 19px; }
  .summary-card { min-height: 105px; padding: 15px; }
  .summary-card b { font-size: 21px; }
  .order-row { grid-template-columns: 35px minmax(0,1fr) auto; gap: 8px; }
  .payment-dot { width: 34px; height: 34px; }
  .row-arrow { display: none; }
  .order-main small { max-width: 160px; }
  .receipt { padding: 22px 18px; }
  .receipt-meta { align-items: flex-start; flex-direction: column; }
  .menu-hero { min-height: auto; border-radius: 25px; }
  .menu-hero h1 { letter-spacing: -2px; }
  .menu-price-group { grid-template-columns: 72px 1fr; gap: 12px; padding: 15px; }
  .price-bubble { width: 68px; height: 68px; border-width: 4px; font-size: 14px; }
  .menu-names span { font-size: 12px; }
  .auth-page { padding: 13px; }
  .auth-card { padding: 24px 19px; border-radius: 23px; }
  .customer-hero { align-items: flex-start; gap: 12px; border-radius: 22px; }
  .customer-hero h1 { font-size: 25px; }
  .customer-order-meta { align-items: flex-start; flex-direction: column; }
  .incoming-grid { grid-template-columns: 1fr; }
  .recent-customer-row { grid-template-columns: minmax(0,1fr) auto; }
  .recent-customer-row .status-text { display: none; }
  .qr-sheet { padding: 22px 14px; border-width: 8px; }
}
@media print {
  body { background: #fff; }
  .topbar, .footer, .no-print { display: none !important; }
  .page-shell { width: 100%; min-height: auto; padding: 0; }
  .receipt { border: 0; box-shadow: none; }
  .qr-sheet { border: 8px solid #000; box-shadow: none; }
}

