/* Restaurant Manager - styles on top of the shared iPOS app.css */
:root { --brand: #c2410c; --brand-2: #9a3412; --brand-soft: #fff1e6; }
.sidenav { background: #2a1608; }
.login-screen { background: linear-gradient(160deg, #2a1608, #7c2d12); }
.shopbar { background: linear-gradient(90deg, #170b03, #2a1608 60%, #3b1d0a); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
label.f.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--brand-soft); }
tr.tot td { border-top: 2px solid var(--line); }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.nbadge { margin-left: auto; background: #f2b705; color: #16202e; border-radius: 99px; font-size: 11.5px; padding: 1px 7px; }
.bottomnav .nbadge { position: absolute; margin: 0 0 0 18px; }

/* ac-list used inline (guest finder), and as buttons */
#gFound.ac-list { position: static; box-shadow: none; margin-bottom: 10px; }
.ac-list:empty { display: none; }
button.ac-row { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; justify-content: flex-start; }
#gsr button.ac-row { border-bottom: 1px solid var(--line); border-radius: 0; }

/* housekeeping badges */

/* ---------- restaurant ---------- */
.prod span { color: var(--brand); font-weight: 700; margin-top: auto; }
.prod .tb { margin-top: 0; color: #fff; }
.prod span.s { margin-top: 0; color: var(--muted); font-weight: 400; font-size: 12px; }
.prod span.p { color: var(--brand); font-weight: 700; margin-top: auto; }
.cartlines .cartline { display: flex; align-items: center; gap: 8px; }
.cart .totals { max-width: none; }

/* settings */
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 6px 10px; cursor: pointer; font: inherit; }
.chip.off { opacity: .5; text-decoration: line-through; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin: 0; }
.more-item svg { width: 28px; height: 28px; color: var(--brand); }

/* ---------- print ---------- */
.a4-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.a4-head img { width: 60px; height: 60px; object-fit: contain; }
.a4-head h1 { font-size: 20px; margin: 0; }
.a4-head > div { flex: 1; }
.a4-head h2 { text-align: right; font-size: 16px; margin: 0; }
.a4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.a4 table.reg th { text-align: left; background: #f3f3f3; text-transform: none; font-size: 12.5px; color: #000; }
.a4 table.folio td, .a4 table.folio th { border: 1px solid #999; }
.a4.land { max-width: none; }
.a4 table.reg-list td, .a4 table.reg-list th { font-size: 10.5px; padding: 3px 4px; text-transform: none; color: #000; }
@media print {
  .a4.land { width: 277mm; }
  .a4 .tablewrap { overflow: visible; }
}

@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar h1 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip { display: none !important; }
  #topActions { flex-basis: 100%; order: 5; }
  #topActions:empty { display: none; }
  .a4-grid { grid-template-columns: 1fr; }
}

/* Urdu (right to left) prints */
.a4.ur { font-size: 14px; line-height: 1.9; }
[dir=rtl] .right, [dir=rtl] th.right, [dir=rtl] td.right { text-align: left; }
[dir=rtl] th, [dir=rtl] td { text-align: right; }
[dir=rtl] .a4-head h2 { text-align: left; }
.rcpt.ur .lr span:last-child { direction: ltr; unicode-bidi: embed; }

/* ---------- tables floor ---------- */
.tblgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tbl { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; border-left: 6px solid #16a34a; background: #effaf2; border-radius: 12px; padding: 12px; cursor: pointer; min-height: 86px; box-shadow: var(--shadow); }
.tbl b { font-size: 19px; }
.tbl.busy { border-left-color: #ea580c; background: #fff3e8; }
.tbl.ready { border-left-color: #2563eb; background: #e8f0ff; animation: pulse 1.6s infinite; }
.tbl:hover { outline: 2px solid var(--brand-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); } }
.chip.free { border-left: 5px solid #16a34a; } .chip.busy { border-left: 5px solid #ea580c; } .chip.ready { border-left: 5px solid #2563eb; }
.neg { color: var(--bad); font-weight: 700; }

/* ---------- kitchen screen ---------- */
.kboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; align-items: start; overflow-x: auto; }
.kcol { background: #ece6e0; border-radius: 14px; padding: 10px; min-height: 60vh; }
.kcol h3 { margin: 4px 6px 10px; }
.kt { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow); border-top: 5px solid #f59e0b; }
.kt.late { border-top-color: #dc2626; }
.kcol:nth-child(2) .kt { border-top-color: #ea580c; }
.kcol:nth-child(3) .kt, .kcol:last-child .kt { border-top-color: #16a34a; }
.kl { padding: 3px 0; font-size: 16px; border-bottom: 1px dashed var(--line); }
@media (max-width: 820px) { .kboard { grid-auto-flow: row; grid-auto-columns: auto; } .kcol { min-height: 0; } }

/* New order: pick the order type first */
.otypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 10px; }
.otype { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 0; border-radius: 18px; padding: 22px 20px; min-height: 170px; cursor: pointer; color: #fff; box-shadow: var(--shadow); transition: transform .12s; }
.otype:hover { transform: translateY(-2px); }
.otype svg { width: 44px; height: 44px; margin-bottom: 8px; opacity: .95; }
.otype b { font-size: 24px; font-family: Georgia, serif; }
.otype span { font-size: 14px; opacity: .92; }
.otype small { margin-top: auto; font-size: 12.5px; background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 999px; }
.otype.dine { background: linear-gradient(135deg, #c2410c, #ea580c); }
.otype.take { background: linear-gradient(135deg, #b45309, #d97706); }
.otype.delivery { background: linear-gradient(135deg, #7c2d12, #b91c1c); }
@media (max-width: 700px) { .otypes { grid-template-columns: 1fr; } .otype { min-height: 120px; flex-direction: row; flex-wrap: wrap; align-items: center; } .otype svg { margin: 0 12px 0 0; } .otype small { margin-top: 0; } }

/* ---------- v26.10.7: stations, alerts, allergy, popular, offers, Urdu, QR sheet ---------- */
.ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; direction: rtl; unicode-bidi: embed; }
.rcpt .lr .ur, .a4 td .ur { font-size: 12px; }
.rcpt div.ur { text-align: right; font-size: 12px; }
.tbl.warn { box-shadow: inset 0 0 0 3px #facc15, var(--shadow); background: #fffbe0; }
.tbl.late { box-shadow: inset 0 0 0 3px #dc2626, var(--shadow); background: #ffe9e9; }
.tbl { position: relative; }
.billchip { position: absolute; top: 8px; right: 8px; background: #7c3aed; color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 9px; letter-spacing: .5px; animation: pulse 1.6s infinite; }
.chip.warn { border-left: 5px solid #facc15; } .chip.late { border-left: 5px solid #dc2626; } .chip.billc { border-left: 5px solid #7c3aed; }
.popbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.popchip { border: 1px solid var(--line); background: #fff7ed; color: #9a3412; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.popchip:hover { border-color: var(--brand); }
.popchip.out { opacity: .5; text-decoration: line-through; }
.chip.on { background: #fff3e8; border-color: #ea580c; }
.prod .hh { color: #fff; background: #dc2626; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: 11px; }
.prod.deal { border-style: dashed; background: #fff8ee; }
.kt.algy { border-top-color: #dc2626 !important; outline: 3px solid #dc2626; }
.kl.algline { background: #fee2e2; border-radius: 6px; padding: 4px 6px; }
.algtag { display: inline-block; background: #dc2626; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 1px; border-radius: 5px; padding: 1px 8px; margin-top: 2px; }
.alg { background: #000; color: #fff; text-align: center; font-weight: 700; font-size: 13px; margin: 3px 0; padding: 2px; }
.dupmark { border: 2px solid #000; margin: 4px 0; padding: 2px; }
.qrgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm; }
.qrc { border: 1.5px dashed #444; border-radius: 4mm; padding: 5mm 3mm; text-align: center; page-break-inside: avoid; color: #000; }
.qrn { font-weight: 700; font-size: 13px; }
.qrq svg { width: 38mm; height: 38mm; }
.qrt { font-size: 22px; font-weight: 800; }
.qrs { font-size: 11px; color: #444; }
.rcpt.urb { font-size: 13px; line-height: 1.7; } .a4.urb { font-size: 14px; line-height: 1.8; }
.rcpt .lr > span:first-child { text-align: left; }
.algtag { margin-left: 6px; }

/* ---------- v26.10.8: reservations, staff, reports ---------- */
.resvtag { color: #7c3aed; font-weight: 600; }
.bar { height: 10px; background: #eee; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; }
tr.lowrate td { background: #fff1f1; }
table.att th, table.att td { padding: 2px 1px; text-align: center; font-size: 11px; }
table.att td:first-child, table.att th:first-child { text-align: left; padding-right: 8px; white-space: nowrap; font-size: 13px; }
.atc { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 12px; padding: 0; }
.rcpt .qrb svg { width: 26mm; height: 26mm; }
.pos { color: #16a34a; }

/* modifier groups in the dish picker (Cafe: Size · Milk · Sugar · Syrups · Extras) - 23 Nov 2026 */
.modal-bg.mg-m .modal h3, .mg-m h3 { margin: 10px 0 6px; font-size: 14px; }
.mg-ch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.mg-o { position: relative; cursor: pointer; }
.mg-o input { position: absolute; opacity: 0; pointer-events: none; }
.mg-o span { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line, #e2e8f0); font-weight: 600; font-size: 13.5px; background: var(--card, #fff); }
.mg-o span i { font-style: normal; color: var(--muted, #64748b); font-weight: 500; margin-left: 2px; }
.mg-o input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.mg-o input:checked + span i { color: rgba(255,255,255,.85); }
.mg-o input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.mg-req { color: #b91c1c; font-weight: 600; }
.mg-ed { margin: 4px 0; } .mg-ed .mg-gall { background: var(--brand-soft); }
.rcpt .tokn { font-size: 22px; letter-spacing: 1px; border: 2px solid #000; border-radius: 6px; margin: 4px auto; padding: 2px 10px; display: table; }
