@font-face { font-family: 'Tajawal'; src: url(/fonts/tajawal-arabic-500-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url(/fonts/tajawal-arabic-700-normal.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url(/fonts/playfair-display-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
:root { --g: #0b3a23; --g2: #008C39; --r: #C8102E; --cream: #f7f2ea; --ink: #1b1a17; --mut: #776d62; --line: rgba(27, 26, 23, .1); }
* { box-sizing: border-box; }
body { margin: 0; font: 500 16px/1.5 'Tajawal', system-ui, sans-serif; color: var(--ink); background: #efe8dc; min-height: 100vh; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; background: var(--g); color: #fff; }
.top::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--g2) 0 33.3%, #fff 33.3% 66.6%, var(--r) 66.6%); }
.logo { height: 42px; }
.ttl { flex: 1; } .ttl h1 { margin: 0; font-size: 20px; } .conn { color: #7dffad; } .conn.off { color: #ffb0b0; }
.acts { display: flex; align-items: center; gap: 10px; }
.q { width: min(42vw, 360px); padding: 10px 14px; border-radius: 12px; border: 0; }
.snd { width: 44px; height: 44px; border-radius: 12px; border: 0; font-size: 20px; cursor: pointer; background: rgba(255, 255, 255, .15); opacity: .5; } .snd.on { opacity: 1; background: #fff; }
.clock { font: 600 20px 'Playfair', serif; min-width: 70px; }
.tabs { display: flex; gap: 8px; padding: 18px 18px 6px; flex-wrap: wrap; }
.tabs button { padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-inline-start: 6px; border-radius: 999px; background: var(--cream); font-size: 14px; }
.tabs button.on { background: var(--g); color: #fff; } .tabs button.on b { background: var(--r); color: #fff; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 12px 18px 40px; align-items: start; }
.card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 14px 30px -20px rgba(60, 40, 15, .45), inset 0 0 0 1px var(--line); display: grid; gap: 10px; animation: in .4s ease; border-top: 6px solid var(--g2); }
.card.st-received { border-top-color: var(--r); } .card.st-ready { border-top-color: #e2a400; } .card.st-completed, .card.st-cancelled { opacity: .7; border-top-color: #999; }
.card.fresh { animation: pulse 1s ease 4; }
@keyframes in { from { transform: translateY(14px); opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(200, 16, 46, .35); } }
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.num { font: 600 22px 'Playfair', serif; direction: ltr; } .ago { color: var(--mut); font-size: 13px; }
.where { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--cream); }
.badge.dine { background: var(--g); color: #fff; } .badge.tbl { background: var(--r); color: #fff; font-size: 17px; } .badge.pick { background: #e2a400; color: #fff; }
.who { font-weight: 700; } .who a { color: var(--g2); direction: ltr; unicode-bidi: isolate; }
.lines { list-style: none; margin: 0; padding: 10px 0; border-block: 1px dashed var(--line); display: grid; gap: 6px; }
.lines li { display: flex; justify-content: space-between; gap: 8px; } .lines b.q { color: var(--r); margin-inline-end: 6px; }
.lines small { display: block; color: var(--mut); font-size: 13px; } .lines .nt { color: #b3121f; font-style: italic; }
.notes { background: #fff6dd; border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; } .tot b { font: 600 24px 'Playfair', serif; direction: ltr; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns button { flex: 1; min-height: 48px; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; color: #fff; background: var(--g2); }
.btns .ready { background: #e2a400; } .btns .done { background: var(--g); } .btns .cancel { flex: 0 0 auto; padding: 0 14px; background: #eee; color: #8a1212; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--mut); padding: 60px 10px; font-size: 18px; }
.login { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; background: var(--g); }
.lbox { display: grid; gap: 12px; justify-items: center; background: #fff; padding: 30px; border-radius: 24px; width: min(92vw, 360px); }
.lbox h2 { margin: 0; } .lbox input { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.lbox .go { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--g2); color: #fff; font-weight: 800; cursor: pointer; } .err { color: var(--r); margin: 0; }
.newflash { position: fixed; z-index: 8; top: 90px; left: 50%; translate: -50% 0; padding: 14px 28px; border-radius: 999px; background: var(--r); color: #fff; font-weight: 800; font-size: 22px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); animation: in .3s ease; }
@media (max-width: 640px) { .top { flex-wrap: wrap; } .acts { width: 100%; } .q { flex: 1; width: auto; } .board { grid-template-columns: 1fr; padding: 10px 10px 30px; } .tabs { padding: 16px 10px 4px; } .tabs button { padding: 9px 13px; font-size: 14px; } }
