@charset "UTF-8";

@font-face { font-family: Tajawal; src: url("fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url("fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 600 900; font-display: swap; }

:root {
    color-scheme: light;
    --ink: #18312a;
    --muted: #536760;
    --paper: #f7f6f0;
    --line: #dfe7e0;
    --green: #19543f;
    --deep: #12352c;
    --gold: #f7db9d;
    --white: #fff;
    --surface-shadow: 0 2px 3px #12352c06, 0 8px 23px #12352c08;
    font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin-block: 0 .65em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.25; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.07rem; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .55rem 1rem; border-radius: .65rem;
    border: 1px solid transparent; background: var(--green); color: white;
    font-weight: bold; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { filter: brightness(.91); }
button:disabled { cursor: default; opacity: .65; filter: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #a66a13; outline-offset: 3px;
}
.secondary { color: var(--green); background: #f5f8f5; border-color: var(--line); }
.danger { color: #842e27; background: #fdf2ef; border-color: #f0d8d0; }
.small { padding: .35rem .75rem; }
label { display: grid; gap: .3rem; margin-block-end: .9rem; font-weight: bold; }
input:not([type="checkbox"]), textarea, select {
    width: 100%; min-height: 44px; padding: .5rem .65rem; border: 1px solid #c7cec4;
    background: white; color: var(--ink); border-radius: .5rem;
}
input[type="tel"] { direction: ltr; text-align: end; }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.customer { min-height: 100vh; background: #f8f4eb; }
.customer-footer { background: radial-gradient(ellipse at 75% 0%, #214d3e, transparent 70%), #10342b; border-block-start: 2px solid #d9ac64; color: #f6f3e8; }
.customer-footer-inner { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1.05fr); align-items: stretch; gap: 1.5rem; padding-block: clamp(1.75rem,3vw,3rem); }
.footer-identity { display: grid; place-items: center; min-width: 0; text-align: center; color: var(--gold); background: radial-gradient(ellipse closest-side, #f7db9d17, transparent); }
.footer-identity img { display: block; width: min(100%,17rem); height: 9rem; object-fit: contain; filter: drop-shadow(0 4px 16px #f7db9d24); }
.footer-identity strong { font-size: 1.75rem; }
.footer-contact, .footer-social { min-width: 0; padding-inline-start: clamp(1rem,2vw,2rem); border-inline-start: 1px solid #f7db9d30; }
.customer-footer h2 { color: var(--gold); font-size: 1.12rem; margin: 0 0 1rem; }
.footer-contact address { display: grid; gap: .6rem; font-style: normal; overflow-wrap: anywhere; }
.footer-contact-row { display: flex; align-items: flex-start; gap: .7rem; }
.footer-contact-row > svg { flex: none; box-sizing: content-box; padding: .28rem; border-radius: .45rem; color: var(--gold); background: #f7db9d12; }
.footer-contact address p { margin: 0; white-space: pre-line; }
.footer-contact a { color: inherit; width: fit-content; text-decoration: none; text-underline-offset: .2em; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .footer-map { color: var(--gold); }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social-links > * { display: grid; place-items: center; width: 44px; height: 44px; color: var(--gold); border: 1px solid #f7db9d60; border-radius: .85rem; background: #ffffff0d; }
.footer-social-links a:hover { color: var(--deep); background: var(--gold); }
.footer-social-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer-social-links a.footer-social-whatsapp { color: #183c2d; background: #b7edca; border-color: #b7edca; }
.footer-social-links a.footer-social-whatsapp:hover { background: #d5f6df; }
.footer-social-links .footer-social-unlinked { color: #e7d4ad; border-color: #f7db9d40; }
.business-social-fields { min-inline-size: 0; margin: 0; padding: 1rem; border: 1px solid #dce5dc; border-radius: 14px; }
.business-social-fields legend { padding-inline: .5rem; font-weight: 700; }
.business-social-fields p { margin: 0 0 .75rem; }
.business-social-label { display: flex; align-items: center; gap: .45rem; }
.business-social-label svg { flex: none; }
@media (max-width: 760px) {
    .customer-footer-inner { grid-template-columns: minmax(0,1fr); gap: 1.15rem; width: min(100% - 2rem, 32rem); }
    .footer-contact, .footer-social { padding: 1.15rem 0 0; border: 0; border-block-start: 1px solid #f7db9d30; }
    .footer-social { text-align: center; }
    .footer-social-links { justify-content: center; }
    .footer-identity img { height: 6.5rem; }
}
.hero {
    position: relative; isolation: isolate;
    background: radial-gradient(ellipse at 20% 100%, #245441, transparent 70%), #10342b;
    color: #fffaf0; border-bottom: 3px solid #d9ac64; overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero-photo {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(62%, 65rem);
    mask-image: linear-gradient(to right, #000 15%, #000d 39%, transparent 92%);
}
[dir="ltr"] .hero-photo { mask-image: linear-gradient(to left, #000 15%, #000d 39%, transparent 92%); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 46% 51%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#10342bc4, #10342b1e 44%, #10342b50); }
.menu-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid #fff5da35; }
.menu-brand { color: var(--gold); font-weight: 700; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.sidebar-photo { display: none; }
.hero-inner { display: flex; align-items: center; min-height: clamp(6rem, 13vw, 12rem); padding-block: .75rem; }
.hero-copy { display: grid; justify-items: center; max-width: min(68%, 40rem); min-width: 0; }
.hero-tagline { margin: 0; color: #fff1cf; font-size: clamp(.8rem,1.35vw,1rem); font-weight: 500; line-height: 1.4; text-align: center; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 5px #10342b; }
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.5rem); text-wrap: balance; overflow-wrap: anywhere; letter-spacing: -.025em; }
.hero-restaurant-logo img {
    display: block; width: clamp(8rem, 24vw, 17rem); max-width: 100%;
    height: clamp(5.25rem, 10vw, 9rem); object-fit: contain;
}
.hero-restaurant-logo .brand-mark { background: transparent; border: 0; color: var(--gold); }
.hero .language-switch { color: #fffaf0; border-color: #ffffff62; background: #10342bca; padding-inline: .7rem; }
.language-switch { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem; border: 1px solid #b6cbbd; border-radius: .65rem; background: #f5f8f5; color: var(--green); font-weight: bold; text-decoration: none; }
.language-switch:hover { filter: brightness(.92); }
.login-actions { justify-content: flex-end; margin-block-end: .35rem; }
.install-button svg { flex: none; }
.hero .install-button { color: var(--gold); background: #10342bca; border-color: #f7db9d70; }
.install-content { padding: 1rem 1.25rem; }
.install-content p { margin: 0; }
.install-content p + p { margin-block-start: .65rem; color: var(--muted); }
@media (max-width: 520px) {
    .install-button { min-height: 44px; min-width: 44px; padding: .4rem; }
    .install-button span { display: none; }
}
.brand-mark {
    display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex: none;
    border: 1px solid #e5c27e; border-radius: 1.05rem; color: var(--deep);
    background: var(--gold); font-size: 1.65rem; font-weight: bold;
}
.eyebrow { color: #8a5e16; font-weight: bold; font-size: .9rem; }
.categories { position: sticky; top: 0; z-index: 3; background: #fffcf5; border-bottom: 1px solid #e5ddcd; }
.menu-toolbar { display: flex; align-items: center; gap: .75rem; }
.menu-toolbar .category-links { flex: 1; min-width: 0; }
.cart-anchor { position: relative; flex: none; }
.cart-toggle { position: relative; width: 46px; height: 46px; padding: 0; }
.cart-toggle #cart-count { position: absolute; inset-block-start: -.3rem; inset-inline-end: -.3rem; min-width: 1.25rem; padding: .04rem .25rem; line-height: 1.3; }
.cart-card { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + .6rem); width: min(24rem, calc(100vw - 2rem)); box-shadow: 0 .8rem 2rem #12352c2b; }
.cart-card-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-block-end: .55rem; }
.cart-card-heading h2 { margin: 0; }
#cart-lines { max-height: min(42dvh, 22rem); overflow-y: auto; overscroll-behavior-y: contain; overflow-anchor: none; padding-inline: .18rem; }
.cart-preview-progress { position: absolute; inset: .35rem 1rem auto; height: 3px; overflow: hidden; border-radius: 1rem; background: #e1ebe3; }
.cart-preview-progress span { display: block; height: 100%; background: var(--green); transform-origin: right; animation: cart-preview 3s linear forwards; }
[dir="ltr"] .cart-preview-progress span { transform-origin: left; }
@keyframes cart-preview { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .cart-preview-progress span { animation: none; } }
#checkout-open { width: 100%; }
.checkout-dialog #checkout { padding: 1rem 1.25rem 1.25rem; }
.checkout-summary { font-size: .9rem; margin-block-end: .65rem; }
.checkout-summary th, .checkout-summary td { padding: .4rem .5rem; }
.checkout-summary td:first-child { overflow-wrap: anywhere; }
.checkout-summary :is(th,td):nth-child(n+2) { text-align: end; white-space: nowrap; }
.checkout-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding-block-start: 1.25rem; }
.checkout-actions > button { padding-inline: .5rem; }
.cart-fly { position: fixed; pointer-events: none; z-index: 5; inset: 0 auto auto 0; width: 36px; height: 36px; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; background: var(--green); color: white; text-align: center; }
.category-links { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: .65rem; }
.category-links::-webkit-scrollbar { display: none; }
.category-links a { display: flex; align-items: center; min-height: 44px; flex: none; padding: .4rem .85rem; text-decoration: none; background: #f6f2e8; border: 1px solid #e7dfcf; border-radius: 2rem; font-weight: bold; }
.category-links a:hover { background: #e7f0e7; }
.category-links a[aria-current] { color: #fff; background: var(--green); border-color: var(--green); }
.category-links a:focus-visible { outline-offset: -3px; }
.shop { padding-block: 1.5rem 3rem; }
.category, .receipt { scroll-margin-top: 5rem; }
.category + .category { margin-block-start: 1.6rem; }
.category h2 { display: flex; align-items: center; gap: .65rem; }
.category h2::before { content: ""; flex: none; width: .47rem; height: .47rem; background: #bd8a42; transform: rotate(45deg); border-radius: .08rem; }
.category h2::after { content: ""; flex: 1; min-width: .85rem; height: 1px; background: #ded3be; }
.menu-grid { display: grid; gap: .85rem; }
.menu-card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--surface-shadow); }
.menu-card { overflow: hidden; display: flex; flex-direction: column; }
.menu-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8ede5; }
.menu-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem; }
.menu-card p, .muted { color: var(--muted); }
.menu-card .spread { margin-block-start: auto; padding-block-start: .65rem; }
.menu-card .spread strong { color: var(--green); }
.menu-price { display: grid; line-height: 1.25; }
.menu-price del { color: var(--muted); font-size: .82rem; }
.checkout-coupon summary { width: fit-content; cursor: pointer; color: var(--green); font-size: .9rem; font-weight: 700; padding-block: .25rem; }
.coupon-input { display: grid; grid-template-columns: minmax(0,12rem) auto; justify-content: start; gap: .35rem; margin-block-start: .35rem; }
.coupon-input #coupon-code, .coupon-input button { min-height: 36px; padding-block: .25rem; font-size: .85rem; }
#coupon-feedback { margin-block: .4rem 0; font-size: .9rem; }
.promotion-form { max-width: 52rem; margin-block: .8rem; }
dialog .promotion-form { margin: 0; }
.promotion-tabs { display: flex; gap: 1.1rem; border-block-end: 1px solid #cddbd0; }
.promotion-tabs a { display: inline-flex; align-items: center; min-height: 46px; padding: .35rem .25rem; margin-block-end: -1px; color: var(--muted); border-block-end: 3px solid transparent; text-decoration: none; font-weight: 700; }
.promotion-tabs a[aria-selected="true"] { color: var(--green); border-block-end-color: var(--green); }
.promotion-tabs a:hover { color: var(--green); }
.promotion-toolbar { display: flex; justify-content: flex-end; margin-block: 1rem .7rem; }
.promotion-items { margin-block: .8rem; }
.promotion-items legend { font-weight: 700; }
.promotion-select-all { margin-block: .3rem .65rem; }
.promotion-item-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .35rem; }
.promotion-item-options label { margin: 0; padding: .4rem .6rem; background: #f5f8f5; border-radius: .45rem; }
.promotion-item-options small { display: block; color: var(--muted); font-weight: 400; }
.promotion-item-options .promotion-price-option { align-content: start; gap: .4rem; min-width: 0; }
.promotion-picker summary { width: fit-content; cursor: pointer; padding: .35rem .65rem; margin-block: .25rem .55rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--green); font-weight: 700; }
.promotion-selected { margin-block-start: .6rem; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; }
.panel { padding: 1rem; }
.receipt { overflow: hidden; padding: 0; border-color: #8db89a; margin-bottom: 1.15rem; }
.receipt-heading { background: #12352c; color: white; padding: 1rem 1.15rem; }
.receipt-heading h2 { margin-block: .2rem; }
.receipt-heading p { color: #d9ebdc; margin: 0; }
.receipt-label { color: var(--gold); font-weight: 700; }
.receipt-body { padding: .8rem 1.15rem 1.15rem; }
.receipt-body .order-lines { margin-block-start: 0; }
.receipt-body .order-lines li:first-child { border-block-start: 0; }
.receipt-body > button { width: 100%; }
.receipt-heading { text-align: center; }
.invoice-brand { text-align: center; }
.invoice-brand img { display: block; width: 9rem; max-width: 65%; height: 5.5rem; margin: 0 auto .45rem; object-fit: contain; }
.invoice-brand p { font-size: 1.2em; font-weight: 700; margin-block: 0 .4rem; }
.receipt-heading .invoice-brand p { color: var(--gold); }
.invoice-promotion { margin-block: .4rem; font-weight: 700; }
.invoice-business { border-block-start: 1px dashed currentColor; padding-block: .85rem; margin-block-start: .85rem; }
.invoice-business dl { display: grid; gap: .3rem; margin: 0; }
.invoice-business dl:empty { display: none; }
.invoice-business dl > div { display: flex; flex-wrap: wrap; column-gap: .5rem; }
.invoice-business dt { font-weight: 700; }
.invoice-business dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.invoice-menu { text-align: center; margin-block-start: .65rem; }
.invoice-menu a { display: inline-grid; justify-items: center; align-items: center; gap: .2rem; color: inherit; }
.invoice-menu canvas { width: 31mm; max-width: 100%; height: auto; image-rendering: pixelated; }
.ticket .invoice-menu { break-inside: avoid; }
.ticket .invoice-brand img {
    width: 58mm;
    max-width: 100%;
    height: 33mm;
    filter: brightness(0);
}
.hero .menu-top-actions { justify-content: flex-end; }
.hero #receipt-link { color: var(--gold); border-color: #f7db9d70; }
.hero #receipt-link[aria-current="page"] { background: #294d3d; }
.customer-orders { width: min(100% - 2rem, 66rem); padding-block: 1.45rem 3rem; }
.customer-orders-heading { display: grid; justify-items: start; gap: .75rem; margin-block-end: 1rem; }
.customer-orders-heading > .button { border-radius: 2rem; padding-inline: 1.15rem; }
.customer-orders-heading h2 { width: 100%; display: flex; align-items: center; gap: .7rem; font-size: 1.6rem; margin: 0; }
.customer-orders-heading h2::after { content: ""; flex: 1; height: 1px; background: #ded3be; }
.customer-orders-layout { display: grid; align-items: start; gap: 1rem; }
.customer-order-list { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.saved-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; padding: .75rem .8rem; color: var(--ink); background: var(--white); border-color: var(--line); text-align: start; }
.saved-order[aria-pressed="true"] { border-inline-start: 4px solid var(--green); background: #eef5ec; }
.saved-order > strong { grid-column: 1 / -1; }
@media (min-width: 760px) {
    .customer-orders-layout { grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); }
}
.cart-line { border-block-start: 1px solid var(--line); padding-block: .7rem .2rem; }
.cart-line label { margin-block-start: .5rem; font-size: .91rem; }
.unit-price { font-size: .85rem; }
.total { border-block-start: 1px solid var(--line); padding-block: .65rem; margin-block: .5rem; }
#send, .login-card button { width: 100%; }
#cart-count, .count { border-radius: 2rem; padding: .08rem .55rem; background: var(--gold); color: var(--deep); font-size: .85rem; }
.error, .success { padding: .7rem; border-radius: .5rem; white-space: pre-line; overflow-wrap: anywhere; }
.error { color: #842e27; background: #faeee9; }
.success { color: var(--green); background: #e9f3e9; }

.login { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(ellipse at 80% 15%, #32634e, transparent 65%), var(--deep); }
.login-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.login-background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-background::after { content: ""; position: absolute; inset: 0; background: #10342b78; }
.login-card { width: min(100%, 27rem); padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: 1.35rem; box-shadow: 0 24px 70px #081d1690; }
.login-heading { display: flex; flex-direction: column; align-items: center; text-align: center; margin-block-end: 1.35rem; }
.login-heading h1 { font-size: clamp(1.55rem, 5vw, 2.1rem); margin: 0; }
.login-card form button { margin-block-start: .35rem; }
.login-heading .brand-mark {
    width: clamp(8rem, 29vw, 10rem);
    height: clamp(7rem, 26vw, 9rem);
    margin-block-end: .4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 2.5rem;
}
.login-heading .brand-mark img { filter: brightness(.74) saturate(1.15); }
.staff { background: #f2f5f2; }
.staff-shell { min-height: 100vh; display: grid; }
.sidebar { background: linear-gradient(165deg, #1b483a, var(--deep) 70%); color: white; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-brand {
    position: relative; display: flex; justify-content: center; align-items: center;
    padding-block: .35rem 1rem;
    background: radial-gradient(ellipse at 50% 49%, #f7db9d34 0%, #e8bb6220 28%, transparent 69%);
}
.sidebar-brand::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #f7db9d66, transparent);
}
.sidebar-brand .brand-mark { width: min(100%, 10rem); height: 7rem; border: 0; border-radius: 0; background: transparent; color: var(--gold); font-size: 2.35rem; }
.sidebar-brand .brand-mark img { filter: brightness(.74) saturate(1.15) drop-shadow(0 3px 7px #081e1880); }
.sidebar nav { display: flex; gap: .5rem; }
.sidebar nav > a { box-sizing: border-box; block-size: 3.25rem; padding-block: .3rem; line-height: 1.15; font-weight: 700; }
.sidebar nav > a > span:not(.count) { min-width: 0; white-space: nowrap; }
.sidebar a { color: #eff9f2; text-decoration: none; min-height: 46px; padding: .55rem .7rem; border-radius: .6rem; border-inline-start: 3px solid transparent; display: flex; align-items: center; gap: .55rem; }
.sidebar a:hover { background: #ffffff14; }
.sidebar a[aria-current] { background: #ffffff20; border-inline-start-color: var(--gold); }
.sidebar .count { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.nav-icon { display: block; flex: none; inline-size: 1.3rem; block-size: 1.3rem; color: #d3e8db; }
.sidebar a[aria-current] .nav-icon { color: var(--gold); }
[dir="rtl"] .logout .nav-icon { transform: scaleX(-1); }
.logout { width: 44px; padding: 0; background: transparent; border-color: #ffffff55; }
.logout:hover { background: #ffffff18; }
.sidebar-account { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: .5rem; padding: .35rem .45rem; background: #ffffff0e; border: 1px solid #ffffff26; border-radius: .75rem; }
.sidebar-account form { flex: none; margin: 0; }
.sidebar-username { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.workspace { min-width: 0; width: 100%; max-width: 95rem; margin-inline: auto; padding: clamp(1rem, 3.5vw, 2.6rem); }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; margin-block-end: 1.2rem; padding-block-end: .9rem; border-bottom: 1px solid #d4e0d5; }
.workspace-heading h1 { margin: 0; font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block-end: 1rem; padding: 1.15rem; }
.filters label { flex: 1 1 8rem; margin: 0; }
.orders-toolbar { margin-block-end: .9rem; }
.order-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-block-end: .55rem; }
.order-tabs a { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .75rem; min-height: 44px; border-radius: .7rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 700; }
.order-tabs a[aria-current] { color: white; background: var(--green); border-color: var(--green); }
.order-tabs a span { min-width: 1.5rem; padding-inline: .3rem; text-align: center; border-radius: 1rem; color: var(--green); background: #e9f0e8; }
.order-filters summary { width: fit-content; color: var(--green); cursor: pointer; padding: .35rem .5rem; font-weight: 700; }
.order-filters .filters { margin-block: .35rem 0; }
.order-id-link { color: var(--green); font-weight: 700; font-size: 1.1rem; text-underline-offset: .2em; }
.board-id small, .board-arrival .muted { display: block; white-space: nowrap; }
.board-arrival strong, .board-total strong { font-size: 1.06rem; }
.board-mobile-label { display: none; }
.pill.order-urgent { margin-inline-start: .35rem; background: #fae8df; color: #812f20; }
.icon-button { width: 44px; padding: 0; }
.icon-button .nav-icon { color: inherit; }
@media (max-width: 900px) {
    .order-board { border: 0; background: none; box-shadow: none; overflow: visible; }
    .order-board table, .order-board tbody { display: block; }
    .order-board thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .order-board tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .7rem; padding: .85rem; margin-block-end: .7rem; background: white; border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--surface-shadow); }
    .order-board td { display: block; border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
    .order-board td:only-child { grid-column: 1 / -1; padding-block: .7rem; }
    .board-status { justify-self: end; }
    .board-id small { white-space: normal; }
    .board-mobile-label { display: block; color: var(--muted); }
    .board-actions { grid-column: 1 / -1; border-block-start: 1px solid var(--line) !important; padding-block-start: .6rem !important; }
    .board-actions .actions { flex-wrap: wrap; }
}
.table-wrap { overflow: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; text-align: start; }
th, td { text-align: start; padding: .85rem .95rem; border-bottom: 1px solid var(--line); }
th { font-size: .89rem; color: #38594c; background: #eaf2eb; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f9fbf9; }
tbody tr:hover { background: #f2f7f1; }
td:only-child { text-align: center; padding-block: 2.5rem; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
td .actions { flex-wrap: nowrap; }
td .actions > * { flex: none; }
.pill { display: inline-block; white-space: nowrap; background: #eeeee7; padding: .2rem .65rem; border-radius: 1rem; font-size: .83rem; font-weight: 600; }
.pill.new { background: #ffefc7; color: #5e440d; }
.pill.preparing { background: #e8edf8; color: #29487e; }
.pill.done { background: #e4f2e7; color: #165130; }
.pill.cancelled { background: #f8e6e0; color: #863b2c; }
.receipt-body > .cancel-order { margin-block-start: .55rem; }
.pagination { display: flex; justify-content: center; gap: 1rem; padding: 1rem; }
.section-actions { margin-bottom: 1rem; }
.detail { max-width: 43rem; }
.detail .actions { align-items: end; }
.detail .actions label { margin: 0; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.item-preview { display: block; width: 10rem; max-height: 9rem; object-fit: cover; margin-bottom: .8rem; border-radius: .6rem; }
.item-view-switch {
    display: inline-flex; gap: .25rem; padding: .25rem; margin-block-end: 1rem;
    border: 1px solid var(--line); border-radius: .8rem; background: #eaf0e9;
}
.item-view-switch a {
    min-width: 5rem; padding: .45rem .65rem; border-radius: .55rem;
    text-align: center; text-decoration: none; font-weight: 600;
}
.item-view-switch a[aria-current] { color: white; background: var(--green); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1.15rem; }
.item-card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: 1rem;
    box-shadow: var(--surface-shadow);
}
.item-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8ede5; }
.item-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.item-card-body h2 { margin-block: .55rem .25rem; font-size: 1.2rem; overflow-wrap: anywhere; }
.item-card-body h2 a { color: inherit; text-decoration: none; }
.item-card-body h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.item-card-body p { font-size: .9rem; overflow-wrap: anywhere; }
.item-category { color: var(--muted); font-size: .85rem; font-weight: 600; }
.item-price { display: block; margin-block-start: auto; padding-block: .35rem .75rem; color: var(--green); }
.item-card .item-actions { border-block-start: 1px solid var(--line); padding-block-start: .65rem; }
.item-table-name { display: flex; align-items: center; gap: .65rem; min-width: 9.5rem; }
.item-table-name img { flex: none; width: 3.3rem; height: 2.75rem; object-fit: cover; border-radius: .55rem; }
dialog {
    width: min(100% - 1.5rem, 36rem); max-height: calc(100dvh - 1.5rem);
    padding: clamp(1rem, 4vw, 1.65rem); border: 1px solid var(--line); border-radius: 1.2rem;
    color: var(--ink); background: var(--white); box-shadow: 0 24px 70px #102f2440;
}
dialog::backdrop { background: #102f24b8; }
dialog.staff-detail-dialog { width: min(100% - 1.5rem, 43rem); padding: 0; }
.editor-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem 1.25rem; border-block-end: 1px solid var(--line); background: #f5f8f5;
}
.editor-heading h2 { margin: 0; }
.editor-close { width: 44px; padding: 0; font-size: 1.45rem; line-height: 1; }
.staff-detail-dialog > .item-editor-form, .staff-detail-dialog > .order-details-content { padding: 1rem 1.25rem; }
.staff-detail-dialog .order-meta { margin-block-start: 0; }
.order-detail-actions { align-items: end; gap: .6rem; }
.order-detail-actions label { margin: 0; }
.order-detail-print { margin-inline-start: auto; }
.order-detail-print .nav-icon { color: inherit; }
.staff-print-frame { position: fixed; inset: auto 0 0 auto; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.staff-print-error { position: fixed; inset: auto 1rem 1rem; z-index: 6; max-width: 26rem; margin: 0; box-shadow: var(--surface-shadow); }
.share-menu-content { padding: 1rem 1.25rem 1.25rem; }
.share-menu-qr { display: grid; justify-items: center; margin-block: 1rem; }
.share-menu-qr canvas { display: block; width: min(17rem, 100%); height: auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: .65rem; }
.editor-fields { display: grid; grid-template-columns: 1fr; gap: .75rem 1rem; }
.editor-fields label { margin: 0; min-width: 0; }
.brand-upload { min-width: 0; display: grid; gap: .6rem; align-content: start; padding: .65rem; border: 1px dashed var(--line); border-radius: .75rem; background: #f7faf7; }
.brand-upload img { width: 100%; height: 5rem; object-fit: contain; border-radius: .45rem; background: #e9efe8; }
.brand-upload-note { margin-block: .65rem 0; font-size: .85rem; }
.price-field { position: relative; display: block; }
.price-field input { text-align: start; padding-inline-end: 2.5rem; font-variant-numeric: tabular-nums; }
.price-field img { position: absolute; inset-inline-end: .85rem; inset-block-start: 50%; transform: translateY(-50%); pointer-events: none; }
[dir="rtl"] .price-field input { text-align: end; padding-inline: 2.5rem .65rem; }
.editor-full { grid-column: 1 / -1; }
.editor-media {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    padding: .75rem; border: 1px dashed #b8cbbd; border-radius: .75rem; background: #f7faf7;
}
.editor-media .item-preview { width: 5rem; height: 4rem; margin: 0; }
.editor-media label { flex: 1 1 12rem; }
.editor-actions { margin-block-start: 1rem; padding-block-start: .85rem; border-block-start: 1px solid var(--line); }
@media (min-width: 540px) {
    .editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dialog-head { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--line); margin-block-end: .9rem; }
dialog .order-meta, .detail .order-meta { padding: .65rem .8rem; border-radius: .65rem; background: #f3f7f2; }
dialog > .actions { margin-block-start: .8rem; }
.order-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1rem; }
.order-meta dt { font-size: .86em; color: var(--muted); }
.order-meta dd { margin: 0; font-weight: bold; overflow-wrap: anywhere; }
.order-lines { list-style: none; margin: .65rem 0; padding: 0; }
.order-lines li { border-block-start: 1px solid var(--line); padding-block: .55rem; overflow-wrap: anywhere; }
.qty { display: inline-block; background: #e9eee6; border-radius: .3rem; padding-inline: .35rem; }
.prep { padding: .4rem .55rem; margin-block: .35rem 0; background: #fff1c8; font-weight: bold; white-space: pre-wrap; overflow-wrap: anywhere; }

.print { color: black; background: white; }
.ticket { width: 72mm; max-width: 100%; margin: 0 auto; padding: 2mm; font-size: 11pt; }
.ticket header { text-align: center; }
.ticket h1, .ticket h2 { font-size: 17pt; }
.ticket .order-meta { display: block; }
.ticket .order-meta div { display: flex; gap: .5rem; }
.ticket .order-meta dt { color: black; }
.ticket .prep { border-inline-start: 1px solid black; }
.ticket .qty { font-size: 13pt; }
.income-summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem 1rem; align-items: center;
    margin-block-end: .85rem; padding: clamp(.85rem, 3vw, 1.4rem);
    color: white; background: linear-gradient(125deg, #235842, #12352c 68%);
}
.income-summary h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.3rem); }
.income-summary-main > strong { display: block; color: var(--gold); font-size: clamp(1.65rem, 5vw, 2.6rem); line-height: 1.25; margin-block-start: .25rem; }
.income-summary-count { min-width: 5rem; padding: .4rem .65rem; border: 1px solid #ffffff35; border-radius: .7rem; text-align: center; background: #ffffff13; }
.income-summary-count span { color: #dbe9de; font-size: .8rem; }
.income-summary-count strong { display: block; font-size: 1.3rem; line-height: 1.25; }
.income-summary p { grid-column: 1 / -1; margin: 0; padding-block-start: .55rem; border-block-start: 1px solid #ffffff30; color: #dbe9de; font-size: .8rem; }
.income-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: .65rem .8rem; align-items: end; margin-block-end: .85rem; }
.income-filters label { margin: 0; min-width: 0; }
.income-filters input { min-width: 0; max-width: 100%; }
.income-filter-actions { display: flex; gap: .45rem; }
.income-filter-actions .nav-icon { color: inherit; }
.income-table td:nth-child(n+2) { white-space: nowrap; }
.income-sheet { max-width: 175mm; margin: 1.5rem auto; padding: 1rem; }
.income-sheet header { text-align: center; }
.income-sheet button { margin-block-start: 1rem; }
.income-breakdown tfoot { background: #eaf2eb; }
@media (max-width: 760px) {
    .income-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem; gap: .6rem; }
    .income-filter-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .income-filter-actions > * { padding-inline: .4rem; gap: .3rem; font-size: .9rem; }
    .income-table th, .income-table td { padding: .6rem .5rem; font-size: .84rem; }
    .income-table th { white-space: normal; }
}
.permissions-panel { max-width: 47rem; }
.permissions-table th[scope="row"] { background: transparent; white-space: normal; }
.permissions-table small { display: block; font-weight: normal; }
.permissions-table input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); vertical-align: middle; cursor: pointer; }
.permissions-panel > button { margin-block-start: 1rem; }
@page { margin: 3mm; }
@media print {
    .no-print { display: none !important; }
    .ticket { padding: 0; }
    .ticket .order-lines li { break-inside: avoid; }
    .ticket .qty, .ticket .prep { background: transparent; }
}

@media (min-width: 540px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) {
    .staff-shell { grid-template-columns: clamp(14.5rem, 22vw, 16rem) minmax(0, 1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .sidebar nav { flex-direction: column; }
    .sidebar nav > a { inline-size: 100%; padding-inline: .55rem; font-size: .94rem; }
    .sidebar-account { margin-block-start: auto; }
}
@media (max-width: 639px) {
    .staff-shell { grid-template-rows: max-content 1fr; }
    .sidebar { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .55rem; padding: .55rem .65rem .35rem; }
    .sidebar::before {
        content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0;
        width: min(40%, 11rem); height: 4rem; z-index: -1; opacity: .42; pointer-events: none;
        background: url("food/house-burger.jpg") 23% 48% / cover no-repeat;
        mask-image: linear-gradient(to right, #000 12%, transparent 96%);
    }
    .sidebar:has(.sidebar-photo)::before { display: none; }
    .sidebar-photo {
        display: block; position: absolute; inset-block-start: 0; inset-inline-end: 0;
        width: min(48%, 12rem); height: 4rem; z-index: -1; opacity: .42;
        object-fit: cover; mask-image: linear-gradient(to right, #000 12%, transparent 96%);
    }
    [dir="ltr"] .sidebar-photo { mask-image: linear-gradient(to left, #000 12%, transparent 96%); }
    [dir="ltr"] .sidebar::before { mask-image: linear-gradient(to left, #000 12%, transparent 96%); }
    .sidebar-brand { grid-column: 1; grid-row: 1; justify-content: flex-start; padding: 0; background: radial-gradient(ellipse 3.4rem 1.8rem at 3rem center, #f7db9d29, transparent); }
    [dir="rtl"] .sidebar-brand { background-position: right; background-size: 6rem 100%; background-repeat: no-repeat; }
    .sidebar-brand::after { display: none; }
    .sidebar-brand .brand-mark { width: 6rem; height: 3.35rem; font-size: 1.55rem; }
    .sidebar-account { grid-column: 2; grid-row: 1; max-width: 8rem; gap: .35rem; padding: .15rem .2rem; font-size: .8rem; }
    .sidebar nav {
        grid-column: 1 / -1; grid-row: 2; min-width: 0; overflow-x: auto;
        scrollbar-width: none; gap: .2rem; padding-block-start: .25rem; border-block-start: 1px solid #ffffff26;
    }
    .sidebar nav::-webkit-scrollbar { display: none; }
    .sidebar nav a {
        flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; position: relative;
        gap: .15rem; min-height: 3.15rem; padding: .25rem .45rem; white-space: nowrap;
        font-size: .76rem; border-inline-start: 0; border-block-end: 2px solid transparent;
    }
    .sidebar nav a[aria-current] { border-block-end-color: var(--gold); }
    .sidebar nav a:focus-visible { outline-offset: -3px; }
    .sidebar nav .nav-icon { width: 1.05rem; height: 1.05rem; }
    .sidebar .count { position: absolute; inset-block-start: .15rem; inset-inline-end: .18rem; font-size: .66rem; padding: 0 .28rem; }
    .workspace { padding: .85rem .7rem; }
    .workspace-heading { gap: .4rem; padding-block-end: .55rem; margin-block-end: .6rem; }
    .workspace-heading h1 { font-size: 1.4rem; }
    .workspace-heading .actions { gap: .3rem; }
    .workspace-heading .actions > * { padding-inline: .55rem; font-size: .82rem; }
    .order-tabs { gap: .3rem; }
    .order-tabs a { flex: 1 0 auto; justify-content: center; gap: .28rem; padding-inline: .42rem; font-size: .8rem; }
    .order-tabs a span { min-width: 1.2rem; padding-inline: .2rem; }
    .orders-toolbar { margin-block-end: .55rem; }
}
@media (min-width: 800px) {
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
}

@media (max-width: 799px) {
    .shop { padding-block-start: 1.15rem; }
    .hero h1 { font-size: clamp(1.65rem, 7.2vw, 2.8rem); }
    .hero-photo { width: 72%; }
    .hero-copy { max-width: 66%; }
    .menu-top { gap: .45rem; padding-block: .55rem; }
    .menu-brand { min-width: 0; font-size: .86rem; }
    .hero .menu-top-actions { flex: none; flex-wrap: nowrap; gap: .35rem; }
    .hero .menu-top-actions .language-switch { font-size: .86rem; padding-inline: .5rem; }
    .hero .language-switch { min-height: 40px; }
    .customer .menu-grid { grid-template-columns: 1fr; gap: .7rem; }
    .menu-card-has-photo { display: grid; grid-template-columns: minmax(0, 35%) minmax(0, 1fr); align-items: stretch; }
    .menu-card-has-photo > img { height: 100%; min-height: 8rem; aspect-ratio: auto; }
    .menu-card-body { padding: .7rem .75rem; }
    .menu-card h3 { margin-block-end: .2rem; font-size: 1.08rem; overflow-wrap: anywhere; }
    .menu-card p { margin-block-end: .28rem; font-size: .86rem; line-height: 1.42; overflow-wrap: anywhere; }
    .menu-card .spread { gap: .3rem .5rem; padding-block-start: .25rem; }
    .menu-card .add { min-height: 44px; padding: .25rem .65rem; }
}

@media (min-width: 620px) and (max-width: 799px) {
    .customer .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
