/* RIMS — coffee-black sidebar, white panels, burnt-orange accent (a restaurant may set its own accent in Settings).
   Fonts are bundled (works on a restaurant LAN with no internet). Restaurants may set --accent from their settings. */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --indigo: #0c0c0d;          /* the sidebar: coffee black (original) */
  --indigo-2: #1f1f22;
  --accent: #c2410c;          /* buttons and links (a restaurant may set its own in Settings) */
  --accent-ink: #fff;
  --amber: #c2410c;           /* new, waiting, low */
  --amber-soft: #FFF1E6;
  --leaf: #15803d;
  --leaf-soft: #E7F6EC;
  --pepper: #b91c1c;
  --pepper-soft: #FDECEC;
  --sky-soft: #FBEDE6;        /* soft accent tint */
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --paper: #f4f4f5;
  --card: #fff;
  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 7px;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 194, 65, 12;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius);
}
* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--font); }
body { font-size: .95rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .display { font-family: var(--display); letter-spacing: -.015em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.text-muted, .muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.num, .stat .v, .tot { font-variant-numeric: tabular-nums; }

/* ---------- buttons, inputs ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .45rem .9rem; }
.btn-sm { padding: .3rem .65rem; font-size: .84rem; }
.btn-lg { padding: .7rem 1.2rem; border-radius: var(--radius); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover, .btn-accent:focus { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: transparent; color: var(--accent-ink); }
.btn-accent:disabled { background: color-mix(in srgb, var(--accent) 45%, #fff); border-color: transparent; }
.btn-outline-accent { color: var(--accent); border: 1.5px solid var(--accent); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-light:hover { background: var(--sky-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.btn-link { color: var(--accent); }
.btn-dark { background: var(--indigo); border-color: var(--indigo); }
.btn-dark:hover { background: var(--indigo-2); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); padding: .5rem .7rem; background-color: #fff; }
.form-control-sm, .form-select-sm { padding: .32rem .55rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 18%, transparent); }
.form-label { font-weight: 600; font-size: .86rem; margin-bottom: .3rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.input-group-text { background: var(--paper); border-color: var(--line); color: var(--muted); }
.alert { border-radius: var(--radius); border: 0; }
.alert-success { background: var(--leaf-soft); color: #145c3b; }
.alert-danger { background: var(--pepper-soft); color: #8d211b; }
.alert-warning { background: #FEF3C7; color: #78350f; }
.alert-info { background: #EEF2F8; color: #1e3a5f; }

/* status pills: soft tint + dot, instead of loud solid badges */
.badge { font-family: var(--font); font-weight: 600; border-radius: 999px; padding: .32em .7em .32em .62em; font-size: .74rem; letter-spacing: 0; }
.badge[class*="text-bg-"]::before { content: ""; display: inline-block; width: .46em; height: .46em; border-radius: 50%; background: currentColor; margin-right: .4em; vertical-align: .08em; opacity: .85; }
.text-bg-warning { background: #FEF3C7 !important; color: #92400e !important; }
.text-bg-success { background: var(--leaf-soft) !important; color: #146a42 !important; }
.text-bg-danger { background: var(--pepper-soft) !important; color: #a1271f !important; }
.text-bg-info { background: #E8F0FB !important; color: #1d4ed8 !important; }
.text-bg-primary { background: #E8EAF8 !important; color: #3730a3 !important; }
.text-bg-secondary { background: #EEEEF0 !important; color: #52525b !important; }
.text-bg-dark { background: #E4E4E7 !important; color: var(--ink) !important; }
.text-bg-light { background: #fff !important; color: var(--muted) !important; }
.text-bg-light::before { display: none !important; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 252px; flex: 0 0 252px; color: #d4d4d8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background-color: var(--indigo);
}
.side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.side .brand { display: flex; gap: .7rem; align-items: center; padding: 1.15rem 1.1rem 1rem; color: #fff; text-decoration: none; }
.side .brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.side .brand .mark { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.side .brand b { display: block; font-family: var(--display); font-weight: 700; line-height: 1.15; font-size: 1rem; }
.side .brand small { color: #8b8b93; font-size: .74rem; }
.side .grp { font-size: .74rem; font-weight: 600; color: #6b6b73; padding: 1rem 1.25rem .3rem; }
.side a.nl { display: flex; align-items: center; gap: .7rem; margin: 1px .6rem; padding: .5rem .7rem; color: #d4d4d8; text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; border-left: 3px solid transparent; }
.side a.nl:hover { background: var(--indigo-2); color: #fff; }
.side a.nl.on { background: var(--indigo-2); color: #fff; font-weight: 600; border-left-color: var(--accent); }
.side a.nl .bi { font-size: 1.05rem; opacity: .95; width: 1.2rem; text-align: center; }
.side a.nl .pill { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 700; }
.side .foot { margin-top: auto; padding: .9rem 1.25rem; font-size: .74rem; color: #6b6b73; border-top: 1px solid #1f1f22; }
.side .foot a { color: #d4d4d8; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
  padding: .55rem 1.5rem; display: flex; gap: .75rem; align-items: center; position: sticky; top: 0; z-index: 20; min-height: 56px; }
.top .who { margin-left: auto; display: flex; gap: .6rem; align-items: center; font-size: .86rem; white-space: nowrap; }
.top .who .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sky-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.top .menu-btn { display: none; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }

/* breadcrumbs + back */
.crumbs { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .88rem; }
.crumbs .back { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.crumbs .back:hover { border-color: var(--accent); color: var(--accent); }
.crumbs ol { list-style: none; display: flex; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; gap: .15rem; min-width: 0; }
.crumbs li { display: flex; align-items: center; color: var(--muted); white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin: 0 .45rem; color: #c4c4cc; }
.crumbs li a { color: var(--muted); text-decoration: none; }
.crumbs li a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.65rem; margin: 0; font-weight: 700; }
.page-head .acts { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 1px 0 rgba(22,26,46,.03); overflow: hidden; }
.card-h { padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: .55rem; }
.card-h .bi { color: var(--accent); }
.card-b { padding: 1.15rem; }
.stat { padding: 1.1rem 1.2rem; }
.stat .k { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin-top: .2rem; letter-spacing: -.02em; }
.stat .k + .v + div { margin-top: .15rem; }
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .65rem .9rem; border-color: var(--line); }
.table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; background: #fafafa; border-bottom-width: 1px; }
.table-hover tbody tr:hover > * { background: #fafafa; }
.table tfoot th, .table tfoot td { background: #fafafa; }
.table-sm > :not(caption) > * > * { padding: .45rem .75rem; }
.num { text-align: right; white-space: nowrap; }
.list-group-item { border-color: var(--line); }
.list-group-item-action:hover { background: #fafafa; }
.banner { padding: .6rem 1.5rem; font-size: .88rem; }
.banner.trial { background: #EEF2F8; color: #1e3a5f; }
.banner.warn { background: #FFF7ED; color: #9a3412; }
.banner.cloud { background: #F1EFF8; color: #3b2f6b; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.nav-pills .nav-link { color: var(--muted); font-weight: 600; border-radius: 999px; padding: .35rem .85rem; }
.nav-pills .nav-link.active, .nav-pills .nav-link.active.bg-dark { background: var(--indigo) !important; color: #fff; }
.pagination .page-link { color: var(--accent); border-color: var(--line); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.tile { display: flex; flex-direction: column; gap: .15rem; padding: 1.05rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile > .bi { font-size: 1.15rem; color: var(--accent); width: 38px; height: 38px; border-radius: 11px; background: var(--sky-soft); display: grid; place-items: center; margin-bottom: .45rem; }
.tile b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.tile small { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 160px; }
.bars .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); }
.bars .b .col { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bars .b i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 28%, #fff); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bars .b:last-child i { background: var(--accent); }
.bars .b:last-child span:last-child { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .side { position: fixed; left: -270px; z-index: 50; transition: left .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .side.open { left: 0; }
  .top { padding: .5rem 1rem; }
  .top .menu-btn { display: inline-flex; }
  .top .who .name { display: none; }
  .content { padding: 1rem; }
  .page-head h1 { font-size: 1.35rem; }
  .crumbs ol li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .crumbs ol li:nth-last-child(2)::before { display: none; }
  .table-responsive > .table { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- order entry / cashier ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 1.1rem; align-items: start; }
@media (max-width: 1000px) { .pos { grid-template-columns: 1fr; } }
.cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.cats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .86rem; font-weight: 600; color: var(--muted); }
.cats button.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .65rem; }
.prod { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: .8rem .85rem; text-align: left; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.prod:hover { border-color: var(--accent); }
.prod:active { transform: scale(.98); }
.prod b { display: block; font-size: .92rem; line-height: 1.22; font-weight: 600; }
.prod span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prod.off { opacity: .45; pointer-events: none; }
.ticket { position: sticky; top: 74px; }
.ticket .line { display: flex; gap: .5rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.ticket .line .n { flex: 1; font-size: .9rem; font-weight: 500; }
.ticket .line .n small { display: block; color: var(--muted); font-weight: 400; }
.ticket .q { display: flex; align-items: center; gap: .3rem; }
.ticket .q button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; line-height: 1; font-weight: 700; }
.ticket .q button:hover { border-color: var(--accent); color: var(--accent); }
.ticket .tot { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.m-ticket { display: none; }
@media (max-width: 1000px) {
  .m-ticket { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--indigo); color: #fff; padding: .7rem 1rem; align-items: center; gap: .75rem; }
  .has-m-ticket { padding-bottom: 4.5rem; }
  .ticket { position: static; }
}

/* ---------- kitchen display ---------- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.kds .k { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; border-top: 6px solid #a1a1aa; }
.kds .k.pending, .kds .k.accepted { border-top-color: #f59e0b; }
.kds .k.preparing { border-top-color: #2563eb; }
.kds .k.ready { border-top-color: var(--leaf); }
.kds .k.late { box-shadow: 0 0 0 2px var(--pepper); }
.kds .kh { padding: .7rem .9rem; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.kds .kh b { font-family: var(--display); font-size: 1.15rem; }
.kds .ki { padding: .55rem .9rem; display: flex; gap: .55rem; align-items: center; border-bottom: 1px dashed var(--line); cursor: pointer; }
.kds .ki:hover { background: #fafafa; }
.kds .ki.ready { text-decoration: line-through; color: var(--muted); }
.kds .ki.preparing b { color: #2563eb; }

/* ---------- receipts (80 mm) ---------- */
.receipt { width: 76mm; margin: 0 auto; font: 12px/1.35 ui-monospace, "Courier New", monospace; color: #000; background: #fff; padding: 4mm; }
.receipt h2 { font-size: 15px; text-align: center; margin: 0; font-family: inherit; }
.receipt .c { text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 1px 0; vertical-align: top; }
.receipt .r { text-align: right; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 4px 0; }
@media print {
  .no-print, .side, .top, .banner { display: none !important; }
  body, html { background: #fff; }
  .content { padding: 0; }
  .card { border: 0; }
}

/* ---------- sign-in screens ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--indigo); }
.signin .card { width: min(400px, 94vw); padding: 2rem 1.75rem; border: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.signin h1 { font-size: 1.35rem; font-weight: 700; }

/* ---------- public restaurant site ---------- */
.pub-hero { background: var(--indigo); color: #fff; padding: 3.25rem 0 2.75rem; background-size: cover; background-position: center; position: relative; }
.pub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.78)); }
.pub-hero > * { position: relative; }
.pub-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pub-hero img.logo { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; background: #fff; }
.pub-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.pub-nav b { font-family: var(--display); }
.menu-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; flex: 0 0 92px; }
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .info > b { font-family: var(--display); font-size: 1.06rem; font-weight: 600; }
.menu-item .info p { color: var(--muted); font-size: .88rem; margin: .2rem 0 .5rem; max-width: 62ch; }
.price-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .28rem .8rem; font-size: .86rem; font-weight: 600; margin: 0 .35rem .35rem 0; font-variant-numeric: tabular-nums; }
.price-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--indigo); color: #fff; padding: .8rem 1rem; display: none; }
.cart-bar.show { display: block; }
.steps { display: flex; gap: .35rem; }
.steps div { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }
.steps div i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: .4rem; }
.steps div.on { color: var(--ink); font-weight: 600; }
.steps div.on i { background: var(--accent); }

/* ---------- product site ---------- */
.hub-nav { background: #fff; border-bottom: 1px solid var(--line); }
.hub-nav b { font-family: var(--display); font-size: 1.1rem; }
.hub-hero { padding: 4.5rem 0 3.5rem; background: var(--paper); }
.hub-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; max-width: 16ch; }
.feature .bi { font-size: 1.2rem; color: var(--accent); width: 42px; height: 42px; border-radius: 12px; background: var(--sky-soft); display: inline-grid; place-items: center; }
.feature h3 { font-weight: 600; }
.console .side { background-color: #111827; }
.pub-nav a, .hub-nav a:not(.btn) { text-decoration: none; }
.pub-nav a:hover, .hub-nav a:not(.btn):hover { color: var(--accent) !important; }

/* ---------- RIMS 2: order board, order cards, chips, phone tab bar ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; align-items: start; overflow-x: auto; padding-bottom: .5rem; }
.bcol { background: #ececee; border-radius: var(--radius-lg); padding: .65rem; min-height: 120px; }
.bcol h2 { font-family: var(--display); font-size: .95rem; font-weight: 600; margin: .2rem .3rem .6rem; display: flex; }
.bcol h2 span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcol.placed { background: var(--amber-soft); }
.bcol.ready { background: var(--leaf-soft); }
.bcol .ocard + .ocard { margin-top: .55rem; }
.ocard { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; color: var(--ink); text-decoration: none; }
.ocard:hover { border-color: var(--accent); }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .82rem; margin: 0 .3rem .25rem 0; background: #fff; font-variant-numeric: tabular-nums; }
.kds .kq { min-width: 2.2rem; height: 2.2rem; border-radius: 9px; background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.kds .ki { cursor: default; }
.price-btn:disabled { opacity: .45; }
.tabbar { display: none; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(4, 260px); } }
@media (max-width: 900px) {
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--indigo); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; color: #a1a1aa; text-decoration: none; font-size: .72rem; padding: .3rem 0; position: relative; }
  .tabbar a .bi { font-size: 1.3rem; }
  .tabbar a.on { color: #fff; }
  .tabbar a b { position: absolute; top: 0; left: 55%; background: var(--accent); color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 .4rem; }
  .role-waiter .content, .role-chef .content { padding-bottom: 5.5rem; }
  .role-waiter .m-ticket { bottom: 3.6rem; }
}

/* ---------- RIMS 2 online: front page, accounts, demo videos ---------- */
.announce { background: var(--amber-soft); border-bottom: 1px solid #f5d0b5; padding: .7rem 0; font-size: .95rem; }
.announce .bi { color: var(--accent); font-size: 1.15rem; }
.menu-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.menu-tabs button { border: 0; background: none; padding: .6rem .2rem; margin-right: 1.2rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.menu-tabs button span { font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--muted); vertical-align: middle; }
.menu-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.menu-item.off .info > b, .menu-item.off img { opacity: .5; }
.chip { cursor: default; }
button.chip { cursor: pointer; }
button.chip.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.price-btn.added { border-color: var(--leaf); color: var(--leaf); }
.post-card { display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-card:hover b { color: var(--accent); }
.post-card img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 72px; }
.post-card .date { width: 52px; flex: 0 0 52px; text-align: center; border-radius: 12px; background: var(--indigo); color: #fff; padding: .3rem 0; line-height: 1.1; }
.post-card .date b { display: block; font-family: var(--display); font-size: 1.3rem; }
.post-card .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.site-foot { background: var(--indigo); color: #d4d4d8; margin-top: 2rem; padding-bottom: 4.5rem; }
.site-foot b { color: #fff; font-family: var(--display); }
.site-foot a { color: #fff; }
.site-foot div > div { margin-top: .2rem; }
.active-vid { background: var(--sky-soft); }
.text-accent { color: var(--accent) !important; }
@media (max-width: 600px) { .stat { padding: .8rem .85rem; } .stat .v { font-size: 1.3rem; } .page-head h1 { font-size: 1.4rem; } }
.slip-page { max-width: 780px; margin: 0 auto 1.5rem; background: #fff; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media print { .slip-page { border: 0; padding: 0; page-break-after: always; } }
.price-btn.in { border-color: var(--accent); background: var(--sky-soft); color: var(--ink); }
.qminus { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font-weight: 700; font-size: 1.1rem; line-height: 1; margin: 0 .5rem .35rem -.1rem; vertical-align: middle; }
.ticket .q button { width: 38px; height: 38px; font-size: 1.1rem; }
