/* Hotel Manager - extra styles on top of the shared iPOS app.css */
:root { --occ: #0f5c8c; --arr: #a15c00; --out: #b3261e; --vac: #117a4b; --ooo: #6b7280; }
.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; }
.req-alert { border-left: 4px solid #f2b705; }
.req-card { border-left: 4px solid #f2b705; }
.bk-head .card { margin-bottom: 0; }
.bk-head { margin-bottom: 16px; }

/* 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 */
.hk-clean { background: var(--ok-soft); color: var(--ok); }
.hk-inspected { background: #e3f0ff; color: #1f5fbf; }
.hk-dirty { background: var(--bad-soft); color: var(--bad); }
.hk-cleaning { background: var(--warn-soft); color: var(--warn); }
.hk-ooo { background: #ececec; color: #4b5563; }

/* ---------- rooms board ---------- */
.floor-h { margin: 14px 0 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.room-tile { text-align: left; border: 0; border-left: 6px solid var(--vac); background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; cursor: pointer; min-height: 104px; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.room-tile:hover { outline: 2px solid var(--brand-soft); }
.rt-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rt-top b { font-size: 20px; }
.rt-top .badge { font-size: 10.5px; padding: 1px 6px; }
.rt-guest { font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-tile.st-occupied { border-left-color: var(--occ); background: #eef5fb; }
.room-tile.st-arriving { border-left-color: var(--arr); background: #fff8ec; }
.room-tile.st-due-out { border-left-color: var(--out); background: #fdf0ef; }
.room-tile.st-ooo { border-left-color: var(--ooo); background: #f1f1f1; opacity: .8; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.legend .lg { font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); border-left: 5px solid var(--vac); }
.lg.st-occupied { border-left-color: var(--occ); } .lg.st-arriving { border-left-color: var(--arr); } .lg.st-due-out { border-left-color: var(--out); } .lg.st-ooo { border-left-color: var(--ooo); }
.lg.sb-reserved { border-left-color: #e0a100; } .lg.sb-checked-in { border-left-color: var(--occ); } .lg.sb-checked-out { border-left-color: #9aa6b2; }

/* ---------- room chart ---------- */
.tape-wrap { overflow-x: auto; padding: 8px; }
.tape { display: grid; min-width: 720px; grid-auto-rows: 38px; position: relative; }
.tp-h { position: sticky; top: 0; background: var(--card); z-index: 2; text-align: center; font-size: 12px; line-height: 1.1; padding-top: 3px; border-bottom: 2px solid var(--line); }
.tp-h b { display: block; font-size: 15px; }
.tp-h.tp-today { color: var(--brand); }
.tp-h.tp-we { background: #fafbfd; }
.tp-corner { text-align: left; padding-left: 6px; font-weight: 700; }
.tp-room { grid-column: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 6px; border-bottom: 1px solid var(--line); position: sticky; left: 0; background: var(--card); z-index: 1; }
.tp-room b { font-size: 14px; } .tp-room small { color: var(--muted); font-size: 10.5px; }
.tp-cell { border-bottom: 1px solid var(--line); border-left: 1px solid #f0f2f6; cursor: pointer; }
.tp-cell:hover { background: var(--brand-soft); }
.tp-cell.tp-today { background: #f5f9fd; }
.tp-cell.tp-ooo { background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 6px, #e7e7e7 6px, #e7e7e7 12px); cursor: not-allowed; }
.tp-bar { z-index: 1; margin: 5px 2px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 600; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tp-bar.sb-reserved { background: #e0a100; }
.tp-bar.sb-checked-in { background: var(--occ); }
.tp-bar.sb-checked-out { background: #9aa6b2; }

/* ---------- booking form: pick rooms ---------- */
.pick-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pick-room { border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--card); display: block; }
.pick-room.on { border-color: var(--brand); background: var(--brand-soft); }
.pick-room input[type=number] { width: 100px; min-height: 30px; padding: 3px 6px; margin-top: 4px; }
.pick-room input[type=checkbox] { margin-right: 6px; }
.totals .big { font-size: 20px; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.totals { max-width: 420px; margin-left: auto; }
.comp-row { align-items: end; }

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

/* ---------- housekeeping ---------- */
.hk-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.hk-no { width: 80px; display: flex; flex-direction: column; }
.hk-no b { font-size: 22px; } .hk-no small { color: var(--muted); }

/* settings */
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.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; }
  .req-card > .row { flex-direction: column; align-items: stretch; }
  .req-card .stack { min-width: 0 !important; }
  .dash-tbl .stay { display: none; }
  .lau-act .btn { margin: 2px 0; }
  .lau-act { white-space: normal; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .a4-grid { grid-template-columns: 1fr; }
  .bk-head { 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; }
