/* Booknip Hospitality shared styles. Touch-first: large hit targets, high contrast, status never conveyed by colour alone. */
:root { --pos-bg: #f4f6f9; --pos-panel: #ffffff; --pos-ink: #1d2433; --pos-muted: #6b7280; --pos-accent: #004aad;
        --bk-blue: #004aad; --bk-navy: #0a1f44; --bk-teal: #12b5cb; --bk-gold: #b8962a; }
body { background: var(--pos-bg); color: var(--pos-ink); font-size: 15px; }
.pos-nav { background: var(--bk-navy); }
.pos-nav .navbar-brand, .pos-nav .nav-link { color: #e5e7eb; }
.pos-nav .nav-link.active { color: #fff; font-weight: 600; border-bottom: 2px solid var(--bk-gold); }
/* Brand lock-up: logo with the "Hospitality" tagline beneath, right-aligned to the wordmark. */
.bk-brand { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; padding: 2px 0; }
.bk-brand img { height: 22px; width: auto; }
.bk-tag { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bk-gold); margin-top: 2px; font-weight: 600; }
.bk-tag-dark { color: var(--bk-gold); }
/* "Booknip AI" marker on features driven by forecasting or analytics. */
.bk-ai { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 600; padding: .1rem .45rem; border-radius: 1rem;
         color: #fff; background: linear-gradient(90deg, var(--bk-blue), var(--bk-teal)); vertical-align: middle; white-space: nowrap; }
.bk-powered { font-size: .7rem; color: var(--pos-muted); text-align: center; }
.bk-powered img { height: 12px; vertical-align: -1px; }
/* Traffic lights for the gap register; the word is always shown next to the colour. */
.tl { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.tl-Red { background: #dc2626; } .tl-Amber { background: #f59e0b; } .tl-Green { background: #16a34a; }
.gap-tile { border: 0; border-radius: .75rem; text-align: start; width: 100%; }
.gap-tile.active { outline: 3px solid var(--bk-blue); }
/* Back office side menu: collapsible groups and a search; the burger folds it to an icon rail (tooltips, flyout on hover);
   on phones it is an off-canvas drawer opened from the bar above the page. Logical properties keep it right in Arabic. */
.bo-side .nav-link { color: var(--pos-ink); border-radius: .5rem; padding: .45rem .7rem; text-align: start; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-side .nav-link.active { background: var(--bk-blue); color: #fff; }
.bo-side .nav-link .bi { width: 1.25rem; display: inline-block; text-align: center; }
.bo-side .bo-group { display: flex; align-items: center; width: 100%; border: 0; background: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pos-muted); padding: .8rem .7rem .2rem; border-radius: .4rem; }
.bo-side .bo-group:hover:not(:disabled) { color: var(--pos-ink); background: #f1f4f8; }
.bo-side .bo-group:disabled { opacity: 1; cursor: default; }
.bo-side .bo-group:disabled .bo-chev { visibility: hidden; }
.bo-side .bo-group.has-active { color: var(--bk-blue); font-weight: 600; }
[dir=rtl] .bo-side .bo-chev.bi-chevron-right::before { transform: scaleX(-1); display: inline-block; }
.bo-side .bo-sep { display: none; height: 1px; background: #e5e7eb; margin: .35rem .4rem; }
.bo-side .bo-side-head .btn { line-height: 1; padding: .3rem .45rem; }
.bo-side .bo-search-icon { position: absolute; inset-inline-start: .55rem; top: 50%; transform: translateY(-50%); color: var(--pos-muted); font-size: .8rem; pointer-events: none; }
.bo-side .bo-side-search input { padding-inline-start: 1.7rem; }
.bo-side .bo-rail-search { display: none; width: 100%; }
.bo-tip { position: fixed; transform: translateY(-50%); z-index: 1080; background: var(--bk-navy); color: #fff; font-size: .8rem; padding: .3rem .55rem; border-radius: .35rem;
  white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.bo-main { min-width: 0; }
@media (min-width: 992px) {
  .bo-side { position: sticky; top: .75rem; max-height: calc(100vh - 80px); overflow-y: auto; overflow-x: hidden; transition: width .15s ease; }
  .bo-aside.rail { width: 4.25rem; }
  .bo-aside.rail .bo-side { width: 3.5rem; padding: .35rem !important; }
  .bo-aside.rail:not(.fly) .bo-side .bo-side-label, .bo-aside.rail:not(.fly) .bo-side .bo-side-search, .bo-aside.rail:not(.fly) .bo-side .bo-group,
  .bo-aside.rail:not(.fly) .bo-side .bo-label { display: none; }
  .bo-aside.rail:not(.fly) .bo-side .bo-sep, .bo-aside.rail:not(.fly) .bo-side .bo-rail-search { display: block; }
  .bo-aside.rail:not(.fly) .bo-side .bo-sep:first-of-type { display: none; }
  .bo-aside.rail:not(.fly) .bo-side .nav-link { padding: .5rem 0; text-align: center; }
  .bo-aside.rail:not(.fly) .bo-side .bo-side-head { justify-content: center; }
  /* The flyout: the same menu opened out over the page while the mouse rests on it. */
  .bo-aside.rail.fly .bo-side { width: 16rem; padding: .5rem !important; position: sticky; z-index: 1030; box-shadow: 0 .5rem 1.5rem rgba(10,31,68,.25) !important; }
}
@media (max-width: 991.98px) {
  .bo-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(85vw, 20rem); z-index: 1050; overflow-y: auto; border-radius: 0 !important;
    transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  [dir=rtl] .bo-side { transform: translateX(105%); }
  .bo-aside.open .bo-side { transform: none; visibility: visible; }
  .bo-backdrop { position: fixed; inset: 0; background: rgba(10,31,68,.45); z-index: 1040; }
  .bo-side .nav-link { padding: .6rem .7rem; }
}
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: .4rem; background: #e5e7eb; }
/* Dish photo on a till button: a small round picture in the top corner, so the name and price stay readable. */
.tile-img { position: absolute; top: .45rem; inset-inline-end: .45rem; width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(0,0,0,.25); background: #fff; }
.bk-login { background: radial-gradient(circle at 20% 10%, #12305f 0, var(--bk-navy) 55%); }
.bk-login .btn-primary, .bk-login .nav-pills .nav-link.active { background: var(--bk-blue); border-color: var(--bk-blue); }
.offline-banner { background: #b91c1c; color: #fff; text-align: center; padding: 4px; font-weight: 600; }
.offline-banner.edge { background: #9a3412; }
.btn-touch { min-height: 56px; font-size: 1rem; }
.tile { touch-action: manipulation; min-height: 92px; padding-bottom: 1.8rem !important; border-radius: .75rem; border: 0; color: #fff; font-weight: 600; text-align: start; padding: .6rem .75rem; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.15); width: 100%; }
.tile.has-img { padding-inline-end: 3.6rem; }
.tile-name { display: block; line-height: 1.2; }
.tile.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(.94); } }
.tile small { display: block; font-weight: 400; opacity: .9; }
.tile .price { position: absolute; bottom: .5rem; inset-inline-end: .6rem; font-size: .9rem; }
.tile.disabled-86 { background: repeating-linear-gradient(45deg, #9ca3af, #9ca3af 8px, #6b7280 8px, #6b7280 16px) !important; }
.cat-btn { min-height: 48px; border-radius: 2rem; }
.cart { background: var(--pos-panel); border-radius: .75rem; height: calc(100vh - 90px); display: flex; flex-direction: column; }
.cart-lines { flex: 1; overflow-y: auto; }
.cart-line.voided { text-decoration: line-through; opacity: .5; }
.totals td { padding: .15rem 0; }
.grand { font-size: 1.6rem; font-weight: 700; }
.keypad button { min-height: 64px; font-size: 1.4rem; }
.table-card { border-radius: .75rem; min-height: 110px; cursor: pointer; border-width: 2px; }
.st-Free { background: #dcfce7; border-color: #16a34a; }
.st-Seated, .st-Ordered { background: #dbeafe; border-color: #2563eb; }
.st-BillRequested { background: #fef3c7; border-color: #d97706; }
.st-Cleaning { background: #f3e8ff; border-color: #9333ea; }
.st-Reserved, .st-Blocked { background: #e5e7eb; border-color: #4b5563; }
/* Order stages (OPS-14, js/stages.js): a solid chip with an icon and the label, in fixed colours that ignore the Tenant
   theme. A table card takes a light tint of its stage with the stage colour as its border; the text stays dark on it. */
.stg { display: inline-flex; align-items: center; gap: .3em; padding: .2em .6em; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.2;
  background: var(--stg-bg); color: var(--stg-fg); border: 1px solid color-mix(in srgb, var(--stg-bg) 70%, #000); white-space: nowrap; vertical-align: middle; }
.stg-lg { font-size: 1rem; padding: .3em .8em; }
.table-card[class*="stage-"] { background: color-mix(in srgb, var(--stg-bg) 16%, #fff); border: 3px solid var(--stg-bg); color: #111827; }
.table-card.stage-Free, .table-card.stage-Reserved, .table-card.stage-Cleaning, .table-card.stage-Blocked { background: var(--stg-bg); border-color: color-mix(in srgb, var(--stg-bg) 55%, #000); border-width: 2px; }
.table-card.stage-Ready, .table-card.stage-BillRequested { box-shadow: 0 0 0 3px color-mix(in srgb, var(--stg-bg) 35%, transparent); }
.table-card .stg { font-size: .7rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stg-legend .stg { font-size: .7rem; }
.kds .stg-legend .text-muted, body.kds .stg-legend .text-muted { color: #9ca3af !important; }
/* KDS */
.kds body, body.kds { background: #0b1220; color: #e5e7eb; }
.ticket { background: #1f2937; border-radius: .6rem; border-top: 8px solid #16a34a; }
.ticket.warn { border-top-color: #f59e0b; }
.ticket.late { border-top-color: #ef4444; animation: pulse 1.5s infinite; }
.ticket .allergen { background: #fde047; color: #111; font-weight: 700; border-radius: .25rem; padding: 0 .3rem; }
.ticket .mods { color: #93c5fd; }
.ticket .note { color: #fca5a5; font-style: italic; }
.ticket .voided { text-decoration: line-through; color: #6b7280; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.35); } }
/* Receipt (80mm) */
.receipt { width: 80mm; margin: 0 auto; font-family: "Courier New", monospace; font-size: 12px; background: #fff; color: #000; padding: 4mm; }
.receipt h1 { font-size: 15px; margin: 0; }
.receipt .ar { font-family: Tahoma, Arial, sans-serif; direction: rtl; }
.receipt hr { border-top: 1px dashed #000; opacity: 1; margin: 4px 0; }
@media print { .no-print { display: none !important; } body { background: #fff; } .receipt { padding: 0; } }
[v-cloak] { display: none; }
/* Till on phones and tablets: the toolbar and categories scroll sideways, the order opens as a full-screen sheet. */
.cat-strip { flex-wrap: wrap; }
.pos-search { max-width: 320px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.1); }
@media (max-width: 991.98px) {
  .pos-page { padding-bottom: 84px; }
  .cart-col { display: none; }
  .cart-col.open { display: block; position: fixed; inset: 0; z-index: 1040; background: var(--pos-bg); padding: 8px; }
  .cart-col.open .cart { height: calc(100dvh - 16px); }
  .cat-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip .btn { flex: 0 0 auto; }
  .pos-nav .navbar-nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pos-nav .navbar-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 767.98px) {
  .pos-toolbar .tb-label { display: none; }
  .pos-toolbar .type-group { width: 100%; }
  .pos-toolbar .type-group .btn { flex: 1 1 0; min-height: 52px; padding: .3rem; font-size: .85rem; }
  .pos-toolbar .type-group .btn i { display: block; font-size: 1.1rem; }
  .pos-search { max-width: none; }
  .tile { min-height: 84px; font-size: .9rem; }
  .pos-nav .nav-link .nav-label { display: none; }
  .pos-nav .bk-brand img { height: 18px; }
  .container-fluid { padding-left: 8px; padding-right: 8px; }
}

/* Two-step sign-in QR code */
.mfa-qr svg { width: 180px; height: 180px; }

/* Backup & restore */
.tl-lg { width: 1.6rem; height: 1.6rem; }
.bk-health { border-inline-start: 5px solid #16a34a; }
.bk-health.bk-Amber { border-inline-start-color: #f59e0b; }
.bk-health.bk-Red { border-inline-start-color: #dc2626; }
.bk-dest .bi { color: #0e7490; }

/* Offline */
.offline-banner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.offline-banner .btn { --bs-btn-padding-y: 0; }
.sync-bar { background: #fef3c7; color: #78350f; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; padding: 3px; font-size: .875rem; }
.sync-bar.problems { background: #fee2e2; color: #7f1d1d; }
.queued-line { opacity: .75; font-style: italic; }
.ai-suggest .ai-chip { border-radius: 1rem; font-size: .8rem; }
.insights .ins-high { border-left: 4px solid var(--bs-danger); } .insights .ins-medium { border-left: 4px solid var(--bs-warning); }
/* Document library: renewals-per-month bars (one hue, rounded data end on the baseline). */
.doc-month .doc-bar { background: var(--bk-blue); border-radius: 4px 4px 0 0; min-height: 0; }
.doc-month:hover .doc-bar { background: var(--bk-navy); }
.doc-tree .list-group-item.active { background: var(--bk-blue); border-color: var(--bk-blue); }
.doc-table tr[role=button]:hover td { background: #f1f5fb; }
@media print { .doc-filters, .doclib .btn-group, .doclib .btn { display: none !important; } }

/* Global search in the top bar */
.nav-search { position: relative; width: 240px; }
@media (max-width: 1499px) { .nav-search { width: 190px; } }
.nav-search > .bi-search { position: absolute; inset-inline-start: .55rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .85rem; pointer-events: none; }
.nav-search .form-control { padding-inline-start: 1.8rem; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.nav-search .form-control::placeholder { color: #cbd5e1; }
.nav-search .form-control:focus { background: #fff; color: #111; }
.nav-search-results { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; width: min(420px, 92vw); max-height: 70vh; overflow: auto; background: #fff; color: #111; border-radius: .5rem; z-index: 1080; padding: .25rem 0; }
.nsr-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; padding: .45rem .75rem .15rem; }
.nsr-hit { display: block; padding: .35rem .75rem; color: inherit; text-decoration: none; }
.nsr-hit:hover, .nsr-hit.active { background: #eef2ff; }
@media (max-width: 991px) { .nav-search { width: 150px; } }
@media print { .nav-search { display: none; } }

/* Demand forecast chart (js/forecast.js): sold in teal, forecast in indigo; bars meet the baseline square, rounded on top. */
.fc { --fc-actual: #0d9488; --fc-forecast: #6366f1; }
.fc-key { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; vertical-align: -1px; margin-right: .25rem; }
.fc-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--bs-border-color); }
.fc-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 4px; cursor: default; }
.fc-col:hover .fc-bar { filter: brightness(1.15); }
.fc-bar { border-radius: 4px 4px 0 0; min-height: 2px; }
.fc-today { border-left: 1px dashed var(--bs-secondary-color); }
.fc-ev { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--bs-secondary-color); }
.fc-unusual { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 3px, transparent 3px 7px) !important; }

/* Delivery apps: platform cards (js/delivery-apps.js) */
.dap-logo { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: .4rem; color: #fff; font-weight: 700; text-shadow: 0 0 2px rgba(0,0,0,.45); }
.dap-stats > div > div:first-child { font-size: .95rem; }
.dap-stats .text-muted { font-size: .72rem; }

/* Back office > Branding > Colours & fonts (BRD-02) */
.theme-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #0002; }
.theme-preset:hover { box-shadow: 0 0 0 2px var(--pos-accent); }
.theme-preview { max-width: 460px; }

/* Booknip Accounts > Statements, Budgets, Budget vs actual (js/budgets.js) */
.acct-statement .acct-sticky, .acct-budget-grid .acct-sticky { position: sticky; left: 0; background: var(--bs-body-bg, #fff); z-index: 1; }
.acct-statement thead .acct-sticky, .acct-budget-grid thead .acct-sticky, .acct-budget-grid tfoot .acct-sticky { background: var(--bs-tertiary-bg, #f8f9fa); z-index: 2; }
.acct-statement tr.acct-total td { border-top: 1px solid #adb5bd; }
.acct-statement tr.acct-result td { background: rgba(13, 110, 253, .05); }
.acct-statement tr.acct-grand td { border-top: 3px double #495057; }
.acct-budget-grid .acct-cell { min-width: 112px; background: transparent; }
.acct-budget-grid .acct-cell:focus { background: #fff8e1; box-shadow: none; }
.acct-budget-grid thead th { position: sticky; top: 0; z-index: 1; }
.acct-import-errors { max-height: 220px; overflow: auto; }
@media print { .acct-statement-wrap { overflow: visible; } }
.acct-budget-grid td.text-end, .acct-budget-list td.text-end, .acct-statement td.text-end { white-space: nowrap; }
.acct-statement .acct-sticky { min-width: 240px; }

/* Country and business switcher in the top bar (LOC-SW) and the support bar while the Super Admin is inside another business */
.nav-switch { position: relative; }
.nav-switch-panel { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; width: min(360px, 92vw); max-height: 75vh; overflow: auto; background: #fff; color: #111; border-radius: .5rem; z-index: 1080; padding: .25rem 0; }
.nsw-head { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: .45rem .75rem .2rem; }
.nsw-row { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: none; padding: .4rem .75rem; color: inherit; font-size: .9rem; }
.nsw-row:hover:not(:disabled), .nsw-row:focus-visible { background: #f1f5f9; }
.nsw-row.active { background: #e0f2f1; font-weight: 600; }
.nsw-row:disabled { opacity: .7; }
.nsw-sub { padding-inline-start: 2.2rem; font-size: .85rem; }
.nsw-all { border-top: 1px solid #e5e7eb; margin-top: .25rem; }
.nsw-code { font-family: ui-monospace, monospace; font-weight: 700; min-width: 2.2rem; color: #0e7490; }
.nsw-list { max-height: 40vh; overflow: auto; }
.support-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; background: #fde68a; color: #422006; padding: .35rem 1rem; font-size: .9rem; }
