/* 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; }
.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; } }
